GithubHelp home page GithubHelp logo

Comments (17)

mlubin avatar mlubin commented on August 18, 2024

I don't think these model modification routines have ever worked, see #17

from mosek.jl.

IainNZ avatar IainNZ commented on August 18, 2024

Ahh, ok. They are just going to keep using Gurobi in mean time.

from mosek.jl.

IainNZ avatar IainNZ commented on August 18, 2024

The error confuses me because it says m.varmap[i] on that line, so not sure where the comparison is coming from

from mosek.jl.

ulfworsoe avatar ulfworsoe commented on August 18, 2024

set(constr|var)(UB|LB) should work now (in head revision).

from mosek.jl.

mlubin avatar mlubin commented on August 18, 2024

Mosek is still failing JuMP's tests here:

[probmod] Testing problem modification basics
     - With solver GurobiSolver
     - With solver CplexSolver
     - With solver MosekSolver
putconboundlist: [1],Int32[1]
    Int32[1]
    [-1.0e30]
    [3.0]
0 1 3 4
  Failure   :: (line:-1) :: With solver MosekSolver :: Expected: 2.0 ≅ 0.0
    getValue(x) --> roughly(0.0,TOL)
  Failure   :: (line:-1) :: With solver MosekSolver :: Expected: 5.0 ≅ 2.0
    getValue(z) --> roughly(2.0,TOL)
  Failure   :: (line:-1) :: With solver MosekSolver :: Expected: 503.2 ≅ 201.0
    getObjectiveValue(m) --> roughly(201.0,TOL)
putconboundlist: [1],Int32[1]
    Int32[1]
    [-1.0e30]
    [3.0]
0 1 3 4
  Failure   :: (line:-1) :: With solver MosekSolver :: Expected: 3.0 ≅ 1.0
    getValue(x) --> roughly(1.0,TOL)
     - With solver ClpSolver
     - With solver GLPKSolverLP
     - With solver IpoptSolver
WARNING: Solver does not appear to support adding variables to an existing model. Hot-start is disabled.
WARNING: Solver does not appear to support hot-starts. Model will be built from scratch.
     - With solver ECOSSolver
     - With solver SCSSolver
Out of 104 total facts:
  Verified: 100
  Failed:   4

from mosek.jl.

ulfworsoe avatar ulfworsoe commented on August 18, 2024

I'll take a look.

from mosek.jl.

ulfworsoe avatar ulfworsoe commented on August 18, 2024

All MathProgBase tests should pass now. There are still failing JuMP tests; one that looked like a sign problem, one that was a precision problem, some GECO problems that was probably the solver failing to find a solution/certificate and some I couldn't determine.

from mosek.jl.

mlubin avatar mlubin commented on August 18, 2024

Thanks for taking a look. We can address the issues one by one, but I'm still getting a failure on the problem modification test (same as above).

from mosek.jl.

ulfworsoe avatar ulfworsoe commented on August 18, 2024

That should be fixed now. 11 Fails remaining in Jump tests.

from mosek.jl.

ulfworsoe avatar ulfworsoe commented on August 18, 2024

Remaining Fails in JuMP:

  • [model] Test solving an LP (Min): sign problem. I am not sure if the test is wrong or the interface is wrong, but all mathprogbase tests on this subject should pass now.
  • [model] Test vectorized model creation: Precision problem, probably due to MIP solutions having feasibility/optimality tolerances in the order of 1e-2. Also, not that testing on solution values (especially) for MIP can be unreliable.

from mosek.jl.

mlubin avatar mlubin commented on August 18, 2024

The dual tests should be correct; the mathprogbase tests aren't as comprehensive as the JuMP tests (and all of the other solvers pass both mathprogbase and JuMP).
CC @joehuchette for the tolerance issue

from mosek.jl.

ulfworsoe avatar ulfworsoe commented on August 18, 2024

I think all sign errors have been fixed in Mosek.

I am not entirely certain about signs on infeasibility rays.

from mosek.jl.

joehuchette avatar joehuchette commented on August 18, 2024

The tolerance issue should be an easy fix

from mosek.jl.

mlubin avatar mlubin commented on August 18, 2024

Is there a Mosek parameter we can set to tighten tolerances and get the test passing?

from mosek.jl.

ulfworsoe avatar ulfworsoe commented on August 18, 2024

In general, look for any double parameter containing _TOL_.
For the integer problem, I suggest you try to look at MSK_DPAR_MIO_TOL_ABS_RELAX_INT, MSK_DPAR_MIO_TOL_REL_GAP and MSK_DPAR_MIO_TOL_ABS_GAP.

Tolerances may not fix the problem: The solution of different solvers may all be within tolerances,but still differ substantially. If you know the analytical optimal solution, you can test that each constraint is within tolerance, that each integer variable is within tolerance and that the objective less than the analytical objective+eps.

from mosek.jl.

mlubin avatar mlubin commented on August 18, 2024

Hopefully we're not testing a problem with multiple optimal solutions

from mosek.jl.

mlubin avatar mlubin commented on August 18, 2024

This should be fixed by 5ddc4f8

from mosek.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.