Code Monkey home page Code Monkey logo

Comments (6)

aszekMosek avatar aszekMosek commented on August 23, 2024

The issue is that CVX sets MSK_DPAR_INTPNT_* termination tolerances to 0.0, which should be avoided, and that even the "default" precision sets some values that are not Mosek defaults.

A sensible solution would be that "default" precision keeps default Mosek tolerances, "low" divides them by C and "best" multiplies by C, for some C, if at all necessary.

from cvx.

RoyiAvital avatar RoyiAvital commented on August 23, 2024

How come other solvers handle this?
I think @mcg1969 explained the logic in that mode - Let the solver say when he think it is done.

Anyhow, even for tolerance of 0 I wouldn't expect MOSEK to return NAN.

from cvx.

aszekMosek avatar aszekMosek commented on August 23, 2024

Different solvers have different parameters and different interpretations.

If you want to "Let the solver say when he think it is done." then the way to do it in Mosek is not to change parameter settings from their default values.

Nan is understandable if the solver finds no solution.

from cvx.

RoyiAvital avatar RoyiAvital commented on August 23, 2024

This is exactly what doesn't make sense.

Let's say that for the default the solver executed 100 iterations and got to the accuracy required.
Then for lower tolerance I'd expect it will do the same exact 100 iterations and then few more, in order to achieve lower tolerances. But in any case I don't expect it to infer there is no solution or return NaN. At worse case it should say couldn't reach the tolerance, this is the best effort solution.

from cvx.

aszekMosek avatar aszekMosek commented on August 23, 2024

It is more or less like you say if you use decreasing but positive tolerances. Tolerances equal to zero are simply meaningless from the point of view of Mosek termination criteria and result in unspecified behavior, which you experience. Sorry it is not handled better, like by a warning or error but that's how things are now.

from cvx.

mcg1969 avatar mcg1969 commented on August 23, 2024

Sorry that nobody ever responded to this; we don't look at this repo much. For the benefit of others who come here, please visit https://ask.cvxr.com/ for questions about DCP.

from cvx.

Related Issues (13)

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.