#10505: Round values returned by CPLEX when the variable's type is 
integer/binary
----------------------------------+-----------------------------------------
   Reporter:  ncohen              |       Owner:  ncohen    
       Type:  defect              |      Status:  new       
   Priority:  major               |   Milestone:  sage-4.6.1
  Component:  linear programming  |    Keywords:            
     Author:  Nathann Cohen       |    Upstream:  N/A       
   Reviewer:                      |      Merged:            
Work_issues:                      |  
----------------------------------+-----------------------------------------
 CPLEX is a funny guy who does not understand that 1.546846847 e-17 is not
 a proper value for a binary variable. As I often forgot to replace test
 ``== 1`` by ``> .5`` and as it is anyway what CPLEX should return, this
 patch rounds values given to the variables before returning them when it
 is sound. It amounts to copying two lines from ``is_variable_continuous``
 in the ``get_variable_value`` method, and doctests pass better with CPLEX
 (which is not the case with the new patch for TSP #10497)

 Nathann

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