#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:
-------------------------------------------------+-------------------------
Changes (by ncohen):

 * commit:  d3d0d108142add4ef9aa3c441079715327aa77ab =>


Comment:

 Hello !

 I was just trying to see how this new code works (Thanks Volker !!!) and
 see what we can earn by implementing solver-specific "add_constraints".
 And while playing, I found that :

 {{{
 sage: p.<x>  = MixedIntegerLinearProgram()
 ---------------------------------------------------------------------------
 TypeError                                 Traceback (most recent call
 last)
 <ipython-input-14-300a6e09d28b> in <module>()
 ----> 1 p = MixedIntegerLinearProgram(names=('x',)); (x,) =
 p._first_ngens(1)

 /home/ncohen/.Sage/local/lib/python2.7/site-packages/sage/numerical/mip.so
 in sage.numerical.mip.MixedIntegerLinearProgram.__init__
 (build/cythonized/sage/numerical/mip.c:1740)()

 TypeError: __init__() got an unexpected keyword argument 'names'
 }}}

 Nathann

--
Ticket URL: <http://trac.sagemath.org/ticket/16714#comment:55>
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.

Reply via email to