Comments (6)
it should work with the new release 1.6 (released today), could you please check ?
from python-mip.
I think I'm still having the issue:
Welcome to the CBC MILP Solver
Version: Trunk
Build Date: Nov 29 2019
Starting solution of the Linear programming relaxation problem using Primal Simplex
Coin0506I Presolve 4548 (0) rows, 3136 (0) columns and 31552 (0) elements
Clp1000I sum of infeasibilities 5.43786e-07 - average 1.19566e-10, 632 fixed columns
Coin0506I Presolve 4548 (0) rows, 2504 (-632) columns and 11984 (-19568) elements
Clp0000I Optimal - objective value 8
Clp0000I Optimal - objective value 8
Coin0511I After Postsolve, objective 8, infeasibilities - dual 0 (0), primal 0 (0)
Clp0000I Optimal - objective value 8
Clp0000I Optimal - objective value 8
Clp0000I Optimal - objective value 8
Clp0032I Optimal objective 8 - 0 iterations time 0.212, Idiot 0.21
Starting MIP optimization
No match for max_solutions - ? for list of commands
from python-mip.
from python-mip.
Nice! Thanks for the working example. Your method above works for me.
What I was doing is still not working though. I was calling
m = mip.Model()
m.optimize(max_solutions=1)
Sorry. I should have put that at the beginning of the issue.
from python-mip.
from python-mip.
Works! Thanks for the fix.
from python-mip.
Related Issues (20)
- Issues running the latest versions of Python-MIP on AWS lambda functions HOT 8
- Name 'cbclib' is not defined HOT 12
- Wrong results
- Supporting SCIP
- Improve Example Code Readability HOT 3
- Lazy Callback Question HOT 1
- Incorrect n-Queens Constraints? HOT 1
- Output search tree HOT 1
- Confusing Behaviour with disposing of Gurobi Environment HOT 1
- Incorrect file extension when call write() with CBC solver HOT 1
- Explicitly provide supported versions of Cbc HOT 2
- Passing Solver explicitly causes UnboundLocalError
- [1.15.0] Tests fail: ImportError: cannot import name '__version__' from 'mip._version' (/usr/ports/math/py-mip/work-py39/mip-1.15.0/mip/_version.py) HOT 1
- More verbose errors? HOT 3
- still logging when verbose=0 (on a recent version of CBC)
- Support Python 3.12
- Add py.typed marker HOT 1
- Infeasibility Issue in Python-MIP When Incrementing an Integer Constant HOT 2
- `add_constr` returns broken object when adding constraint without variables HOT 3
- help support mac arm HOT 2
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 python-mip.