#16714: Add a matrix of constraints in a LP
-------------------------------------------------+-------------------------
Reporter: ncohen | Owner:
Type: enhancement | Status: closed
Priority: major | Milestone: sage-6.4
Component: linear programming | Resolution: fixed
Keywords: | Merged in:
Authors: Volker Braun | Reviewers: Dima
Report Upstream: N/A | Pasechnik
Branch: | Work issues:
d3d0d108142add4ef9aa3c441079715327aa77ab | Commit:
Dependencies: | Stopgaps:
-------------------------------------------------+-------------------------
Comment (by ncohen):
Yo Dima ! If you happen to write a LP-related ticket, could you do that ?
{{{
#!diff
+++ b/src/sage/numerical/mip.pyx
@@ -1183,7 +1183,7 @@ cdef class MixedIntegerLinearProgram(SageObject):
if b.is_variable_integer(i):
var_type = 'an integer'
elif b.is_variable_binary(i):
- var_type = 'a boolean variable'
+ var_type = 'a boolean'
else:
var_type = 'a continuous'
if varid_name[i] == str(self.gen(i)):
}}}
Otherwise we get stuff like that :
{{{
sage: p.show()
Maximization:
Constraints:
x_0 <= 1.0
Variables:
x_0 is a boolean variable variable (min=0.0, max=1.0)
}}}
And it does not seem worth a ticket of its own...
Nathann
--
Ticket URL: <http://trac.sagemath.org/ticket/16714#comment:59>
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 http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.