#19037: Cplex backend: allow to set logfile
-------------------------------------+-------------------------------------
       Reporter:  dcoudert           |        Owner:
           Type:  enhancement        |       Status:  needs_review
       Priority:  major              |    Milestone:  sage-6.9
      Component:  linear             |   Resolution:
  programming                        |    Merged in:
       Keywords:                     |    Reviewers:
        Authors:  David Coudert      |  Work issues:
Report Upstream:  N/A                |       Commit:
         Branch:  public/19037       |  0e5fb5b7682d7dda735aa2771baf9f1eb1cd9ddc
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by ncohen):

 Hello,

 > since `LogFile` is a solver parameter for `Gurobi`, I prefer to have
 similar access method for `Cplex`.
 > I have added the parameter to the documentation and I'm now using the
 `check` method.

 Okayokay. Could you write it in the doc somewhere? It only appears as
 examples so far.

 > Also, I had to
 > - modify all doctests of the `cplex_backend.pyx` file for the following
 reason: a call to `./sage -t -l --optional=CPLEX
 src/sage/numerical/backends/cplex_backend.pyx`  was reporting 149 doctests
 failures!

 That's because you are meant to run optional=sage,cplex.

 But people here let things like #18904 to die, so whatever...

 > - change some doctests to get rid of deprecation warnings. E.g.,
 > {{{
 >     doctest:858: DeprecationWarning: The default value of 'nonnegative'
 will change, to False instead of True. You should add the explicit
 'nonnegative=True'.
 >     See http://trac.sagemath.org/15521 for details.
 > }}}

 Okayokay. We should have detected this earlier, but then again, #18904...

 > I have a remaining doctest error for method `solve`
 >    I don't know how to fix the example. I can off course change it to
 something more understandable. Let me know what you prefer.

 It's something weird. I played with it a bit, and it looks like you should
 remove the first 'p.solve'. Afterwards it works. Looks like CPLEX does not
 like to see a change in the objective function between successive calls to
 solve.

 Nathann

--
Ticket URL: <http://trac.sagemath.org/ticket/19037#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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to