You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
installing Gurobi switches the default LP solver to Gurobi, leading to doctest failure in mip.pyx
File "/usr/local/src/sage/sage-5.2.rc0/devel/sage-main/sage/numerical/mip.pyx", line 298:
sage: q = copy(p)
Exception raised:
Traceback (most recent call last):
File "/usr/local/src/sage/sage-5.2.rc0/local/bin/ncadoctest.py", line 1231, in run_one_test
self.run_one_example(test, example, filename, compileflags)
File "/usr/local/src/sage/sage-5.2.rc0/local/bin/sagedoctest.py", line 38, in run_one_example
OrigDocTestRunner.run_one_example(self, test, example, filename, compileflags)
File "/usr/local/src/sage/sage-5.2.rc0/local/bin/ncadoctest.py", line 1172, in run_one_example
compileflags, 1) in test.globs
File "<doctest __main__.example_4[4]>", line 1, in <module>
q = copy(p)###line 298:
sage: q = copy(p)
File "/usr/local/src/sage/sage-5.2.rc0/local/lib/python2.7/copy.py", line 80, in copy
return copier(x)
File "mip.pyx", line 320, in sage.numerical.mip.MixedIntegerLinearProgram.__copy__ (sage/numerical/mip.c:2352)
p._backend = (<GenericBackend> self._backend).copy()
AttributeError: 'sage.numerical.backends.gurobi_backend.GurobiBacke' object has no attribute 'copy'
And indeed, there is no copy() in gurobi backend.
Another bunch of tests that fail in a similar fashion, due to Gurobi (version 5) automatically naming constraints, and so
one gets
installing
Gurobi
switches the default LP solver toGurobi
, leading to doctest failure inmip.pyx
And indeed, there is no copy() in gurobi backend.
Another bunch of tests that fail in a similar fashion, due to Gurobi (version 5) automatically naming constraints, and so
one gets
and other similar failures from
show()
.One particular way to fix this would be to set the solver to be
GLPK
in all these tests, and create similaroptional tests for
Gurobi
.And, lastly, Gurobi version 5 on OSX 10.6 outputs
[-0.0, 3.0]
rather than[0.0, 3.0]
in a doctest ingurobi_backend.pyx
.CC: @nathanncohen
Component: linear programming
Reviewer: Volker Braun
Issue created by migration from https://trac.sagemath.org/ticket/13281
The text was updated successfully, but these errors were encountered: