Closed jhpalmieri closed 8 years ago
Branch: u/jhpalmieri/knot-pix
Author: John Palmieri
New commits:
503211d | Knot plotting: use MIP solver 'GLPK' always. |
Commit: 503211d
Description changed:
---
+++
@@ -1 +1,22 @@
The presence of the solver `CPLEX` breaks plotting of knots and links: see [sage-devel](https://groups.google.com/d/msg/sage-devel/ryq2Pmn_lRY/a3twFJNUDwAJ).
+
+Minimal example
+
+```
+sage: L = Link([[2,1,4,5], [5,6,7,3], [6,4,1,9], [9,2,3,7]])
+sage: L.plot()
+Traceback (most recent call last):
+...
+MIPSolverException: 'CPLEX: The primal has no feasible solution'
+```
+the corresponding LP problem is
+
+```
+Maximization:
+ - x_0 - x_1 - x_2 - x_3 - x_4 - x_5 - x_6 - x_7 - x_8 - x_9 - x_10 - x_11
+Constraints:
+ 2.0 <= x_2 - x_3 - x_8 + x_9 <= 2.0
+ 2.0 <= - x_0 + x_1 + x_6 - x_7 <= 2.0
+ 2.0 <= - x_4 + x_5 + x_10 - x_11 <= 2.0
+ 1.0 <= x_0 - x_1 + x_4 - x_5 + x_8 - x_9 <= 1.0
+```
Would be better to investigate the issue...
Description changed:
---
+++
@@ -12,11 +12,20 @@
the corresponding LP problem is
-Maximization:
Indeed, the polyhedron of constraints is empty!
Description changed:
---
+++
@@ -12,20 +12,20 @@
the corresponding LP problem is
Changed branch from u/jhpalmieri/knot-pix to u/vdelecroix/20315
Changed author from John Palmieri to Vincent Delecroix
Now the code works with any solver... Curiously, the number of primitive in the graphics depends on the solution of the first optimization. Which also implies that the pictures in the documentation will depend on the MILP solver ;-)
New commits:
7b79579 | Trac 20315: fix MILP usage in Link.plot |
Description changed:
---
+++
@@ -9,23 +9,6 @@
...
MIPSolverException: 'CPLEX: The primal has no feasible solution'
-the corresponding LP problem is
+The reason is that the code in Link.plot
assumes that the optimization is over integer valued variables which is not the case by default.
-``` -Constraints:
Just want to confirm that I was able to build the documentation with CPLEX backend!
Reviewer: Miguel Marco.
Thanks for the fix. It looks good to me (and a bit more elegant too). Testing it now.
Changed branch from u/vdelecroix/20315 to 7b79579
Changed reviewer from Miguel Marco. to Miguel Marco
The presence of the solver
CPLEX
breaks plotting of knots and links: see sage-devel.Minimal example
The reason is that the code in
Link.plot
assumes that the optimization is over integer valued variables which is not the case by default.We also simplify and optimize the usage of the MILP solver.
CC: @videlec
Component: algebraic topology
Author: Vincent Delecroix
Branch:
7b79579
Reviewer: Miguel Marco
Issue created by migration from https://trac.sagemath.org/ticket/20315