-
-
Couldn't load subscription status.
- Fork 683
Closed
Description
That awful thing again. See bug report at :
https://groups.google.com/d/topic/sage-support/VVTWhE0w7i0/discussion
The problem is that the linear functions need to integrate with the rest of sage to play nice. The patched mip.pyx adds a parent class for linear functions and suitable coercion and rich comparison. Now the following works as expected:
sage: p = MixedIntegerLinearProgram()
sage: x = p.new_variable()
sage: x[1] >= 10
10 <= x_0
sage: 10 <= x[1]
10 <= x_0
Apply attachment: trac_13646_fix_mip.patch
CC: @vbraun @ypfmde @dimpase @ptrrsn
Component: linear programming
Author: Nathann Cohen, Volker Braun
Reviewer: Dmitrii Pasechnik
Merged: sage-5.5.beta1
Issue created by migration from https://trac.sagemath.org/ticket/13646