#7573: Sage crashes if insufficient data is provided for MIP
-------------------------+--------------------------------------------------
   Reporter:  malb       |       Owner:  jkantor        
       Type:  defect     |      Status:  positive_review
   Priority:  major      |   Milestone:  sage-4.3       
  Component:  numerical  |    Keywords:                 
Work_issues:             |      Author:  Martin Albrecht
   Upstream:  N/A        |    Reviewer:                 
     Merged:             |  
-------------------------+--------------------------------------------------
Description changed by ncohen:

Old description:

> This crashes Sage:
>
> {{{
> sage: g = graphs.PetersenGraph()
> sage: p = MixedIntegerLinearProgram(maximization=True)
> sage: b = p.new_variable()
> sage: p.set_objective(sum([b[v] for v in g]))
> sage: p.set_binary(b)
> sage: p.solve(objective_only=True)
> }}}

New description:

 This crashes Sage:

 {{{
 sage: g = graphs.PetersenGraph()
 sage: p = MixedIntegerLinearProgram(maximization=True)
 sage: b = p.new_variable()
 sage: p.set_objective(sum([b[v] for v in g]))
 sage: p.set_binary(b)
 sage: p.solve(objective_only=True)
 }}}

 Depends on #7270 !!!!!!!!!!!!!!!!!!!!

--

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