Coder Social home page Coder Social logo

Comments (6)

jac0320 avatar jac0320 commented on June 26, 2024

How about:
Reconstruct model -> Fix vars by go through varDict with solution value -> objective = min 0.0 -> solve -> return status
?

from powermodels.jl.

ccoffrin avatar ccoffrin commented on June 26, 2024

Given the current state of JuMP this might be the best solution.

In an ideal world, checking feasibility should not require sending the problem to a solver. If you know the constraints and have a value for every variable, then you should be able to easily evaluate the constraints in Julia to test for feasibility up to some numerical tolerance.

@mlubin, @chriscoey suggestions on this? It seems like you do similar checks in Pajarito.

from powermodels.jl.

mlubin avatar mlubin commented on June 26, 2024

Well, you can extract the constraint data and check feasibility. The easiest way is likely to make a dummy solver that does this through MathProgBase.

from powermodels.jl.

ccoffrin avatar ccoffrin commented on June 26, 2024

Sounds like a good solution to me.

from powermodels.jl.

ccoffrin avatar ccoffrin commented on June 26, 2024

@mlubin is this an expected feature in the next version of JuMP/MOI?

from powermodels.jl.

mlubin avatar mlubin commented on June 26, 2024

We will have the infrastructure to implement this much more easily in JuMP/MOI, but this isn't a blocker or high priority for the JuMP 0.19 release.

from powermodels.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.