#20304: More error checking in MixedIntegerLinearProgram
-------------------------------------+-------------------------------------
       Reporter:  mkoeppe            |        Owner:
           Type:  defect             |       Status:  needs_review
       Priority:  major              |    Milestone:  sage-7.2
      Component:  numerical          |   Resolution:
       Keywords:  lp                 |    Merged in:
        Authors:  Matthias Koeppe    |    Reviewers:  Vincent Delecroix
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/mkoeppe/more_error_checking_in_mixedintegerlinearprogram|  
13e82d9944fbf5f64c6ea6559a7c6be221aaea09
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by vdelecroix):

 Replying to [comment:10 mkoeppe]:
 > Should I then make it a `ValueError` also when it's a string, but not
 one that names a variable?
 > (If so, what's the right way to test if it is a string?)

 Not necessarily (one can assume that the "good" way of calling this
 function is with a MIP variable). Though, to test if the object `x` is a
 string you can use {{{isinstance(x, str)}}} (which returns a boolean).

--
Ticket URL: <http://trac.sagemath.org/ticket/20304#comment:11>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to