Matthias Miltenberger
-
Gurobi Staff
Gurobi Optimization Support Manager - Berlin, Germany
- Total activity 1127
- Last activity
- Member since
- Following 0 users
- Followed by 1 user
- Votes 55
- Subscriptions 479
Articles
Recent activity by Matthias Miltenberger-
Releasing the GIL in Python API
Since Gurobi version 9.1, the Global Interpreter Lock (GIL) is released during the optimization process which takes place on a lower level. This enables user programs to execute other Python code i...
-
How do I relax the integrality conditions in my model?
To create a relaxed version of your model that contains only continuous variables and removes SOS and general constraints, use:relax = model.relax()This creates a new Model object and does not modi...
-
How do I use callbacks to terminate the solver?
Custom termination criteria can be set within callbacks in order to avoid calling optimize() several times. The following example uses the Python API to implement a "soft" time limit that is only v...
-
How do I set termination criteria in multi-objective environments?
There are multiple ways to set a termination limit in multi-objective environments: You can set a global limit in the main Gurobi environment. This limit will then be inherited by each Model object...
-
How do I instruct Gurobi to produce a log file?
Gurobi produces a log so you can track the progress of the optimization. A default log file is written only for command-line Gurobi (gurobi_cl). When you use one of the APIs to initiate the optimiz...
-
How do I set up a license without installing the full Gurobi package?
For users who cannot install the full Gurobi Package but still need the license tools grbgetkey and grbprobe and/or the token server grb_ts, we have collected those three tools for download here: W...
-
Is there a way to predict how long it will take Gurobi to solve a MIP?
Estimating the time it takes to solve a MIP is very difficult. The nature of NP-hard problems is that they can take a very long time to solve or may not even be solvable in a reasonable amount of t...
-
How does Gurobi compute the IIS for infeasible models?
Gurobi can compute an Irreducible Inconsistent Subset (IIS) of an infeasible model. An IIS is a minimal subset of constraints and variable bounds that, if isolated from the rest of the model, is st...
-
How do I return to single-objective mode from multi-objective optimization?
To return from multiple objectives to single-objective optimization, set the model attribute NumObj to 0, call update() on the model, and reset the primary objective function via setObjective(). To...
-
How do I query best bound and best objective values in multi-objective optimization?
In multi-objective optimization, not all Model attributes are available. You can use callbacks to store these values (and others) and print them manually when the optimization is finished:def mycal...