#6502: [with Patch, needs review] Linear Program Solver and Mixed Integer 
Program
Solver in SAGE
-------------------------+--------------------------------------------------
 Reporter:  ncohen       |       Owner:  jkantor
     Type:  enhancement  |      Status:  new    
 Priority:  major        |   Milestone:         
Component:  numerical    |    Keywords:         
 Reviewer:               |      Author:         
   Merged:               |  
-------------------------+--------------------------------------------------

Comment(by wdj):

 I agree, this needs docstrings.

 Installation of the spkg went fine on a macbook running 10.4.11. The patch
 seemed to apply okay. sage -testall on 4.1.rc1 passed except for failures
 in parallel/decorate (DeprecationWarning: os.popen2 is deprecated. ) and
 interfaces/sage0 (which could not be replicated).

 The examples given in the sage-devel email (below) seemed to work okay,
 though I am not an expert on this stuff.

 {{{
 g=graphs.RandomGNP(10,.5)

 p=MIP(max=True)

 obj={}
 for i in g.vertices():
    obj["V"+str(i)]=1
    p.setinteger("V"+str(i))
 p.setobj(Constraint(obj,obj=True))
 for (a,b,c) in g.edges():
    obj={}
    obj["V"+str(a)]=1
    obj["V"+str(b)]=1
    p.addconstraint(Constraint(obj,lt=1))
 p.solve()
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6502#comment:3>
Sage <http://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 post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to