Code Monkey home page Code Monkey logo

Comments (7)

znmeb avatar znmeb commented on June 19, 2024 1

MPS is a tad on the old side - isn't AMPL / GMPL / GNU MathProg a more widely used target?

from ompr.

ggsdc avatar ggsdc commented on June 19, 2024

Hello,

I've been thinking of developing a function wo write the model into a MPS file, it could be based on the current function that the library linprog (reference) has or the one in PuLP for python (reference, see definition writeMPS).

I wanted to know if you have been working on this enhancement, in case you have something already done, or if you want me to send you the end result of the function to try include it in the future for ompr.

from ompr.

dirkschumacher avatar dirkschumacher commented on June 19, 2024

MPS is definitely an old format but it can still be used as input for standard solvers. I haven't done anything on that topic.

Some solvers available with ROI have the option to also output mps/lp files.

from ompr.

prubin73 avatar prubin73 commented on June 19, 2024

Would it make sense to expose the ROI::write.op method? I think that would, for example, allow me to export either an LP format file or possibly a SAV file when using the CPLEX plug-in. This would require you to create an instance of the "OP" class when the model is defined (or, lazily, when the write method is called), as opposed to waiting until the solve method is invoked.

from ompr.

dirkschumacher avatar dirkschumacher commented on June 19, 2024

ompr.roi could expose a function called as.op which converts an ompr model to an OP object.

from ompr.

dirkschumacher avatar dirkschumacher commented on June 19, 2024

Let's discuss this in a seperate issue: dirkschumacher/ompr.roi#9

from ompr.

dirkschumacher avatar dirkschumacher commented on June 19, 2024

Can be done using ROI.

from ompr.

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.