GithubHelp home page GithubHelp logo

cvxpy interface works about cmpb HOT 7 OPEN

mlubin avatar mlubin commented on August 24, 2024
cvxpy interface works

from cmpb.

Comments (7)

mlubin avatar mlubin commented on August 24, 2024

Looks great! Only syntax issue that might need a bit more thought is for when we compose solvers. For example the conic <-> nonlinear wrapper at https://github.com/mlubin/ConicNonlinearBridge.jl (which is still a bit broken) requires more than one julia package to be imported before being used, e.g.,

using ConicNonlinearBridge, Ipopt

and then the "name" of the conic solver is ConicNLPWrapper(IpoptSolver()). Similarly, for Pajarito the MILP and conic solvers are also input options.
You could hack around this by first calling

mpb_new_solver("Gurobi","GurobiSolver()", &solver);

and then calling

mpb_new_solver("Pajarito","PajaritoSolver(milp_solver=GurobiSolver())", &solver);

but that's a bit ugly. A better approach would probably be to have a function in the API just to import julia packages without creating a solver. Another solution which isn't too weird is to just do:

mpb_new_solver("Gurobi, Pajarito","PajaritoSolver(milp_solver=GurobiSolver())", &solver);

from cmpb.

mlubin avatar mlubin commented on August 24, 2024

Ok, with 26c2b6a the comma-separated syntax above should work just fine. No need to change anything else.

from cmpb.

SteveDiamond avatar SteveDiamond commented on August 24, 2024

Is the cvxpy interface to Pajarito working for you? I was testing it out and had some issues.

from cmpb.

mlubin avatar mlubin commented on August 24, 2024

Currently at a conference but I'll try it out later this week

from cmpb.

mlubin avatar mlubin commented on August 24, 2024

Sorry, will definitely get to it this week.

from cmpb.

mlubin avatar mlubin commented on August 24, 2024

Ok, got most everything set up but running into:

SolverError: The solver JULIA_OPT is not installed.

How do I point it to the libcmpb.so file?

An obvious reason why Pajarito wouldn't be working yet is that there's no API in cmpb to pass in variable categories (binary, int, etc.), but that should be easy to do once everything else is going.

from cmpb.

SteveDiamond avatar SteveDiamond commented on August 24, 2024

That error means import cmpb failed in Python. Did you run python setup.py install for cmpb?

from cmpb.

Related Issues (1)

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.