Comments (7)
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.
Ok, with 26c2b6a the comma-separated syntax above should work just fine. No need to change anything else.
from cmpb.
Is the cvxpy interface to Pajarito working for you? I was testing it out and had some issues.
from cmpb.
Currently at a conference but I'll try it out later this week
from cmpb.
Sorry, will definitely get to it this week.
from cmpb.
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cmpb.