File: README_MIP.txt

package info (click to toggle)
minizinc 2.1.7%2Bdfsg1-1
  • links: PTS
  • area: main
  • in suites: buster
  • size: 4,624 kB
  • sloc: cpp: 46,644; python: 1,255; ansic: 494; makefile: 14; sh: 14
file content (24 lines) | stat: -rw-r--r-- 989 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
MIP Solver Interfaces in MiniZinc 2
===================================

The executables mzn-cplex, mzn-gurobi, mzn-scip and mzn-cbc use the
corresponding MIP solver library. They can interpret FlatZinc code compiled with
-Glinear, as well as handle original model files (by flattening + solving).

All MIP solvers directly support multi-threading. For this, CBC needs to be
configured with --enable-cbc-parallel. Use svn/git to get the latest CBC revision,
see https://projects.coin-or.org/Cbc.

Calling a solver on a MiniZinc directly:
  
      mzn-gurobi -v -s -a -G linear model.mzn data.dzn

or separated flattening+solving - sometimes more stable but slower due to file I/O:
 
      mzn2fzn -G linear model.mzn data.dzn; mzn-gorubi -v -s -a model.fzn | solns2out model.ozn

USER CUTS and LAZY CONSTRAINTS
===================================
Apply annotations ::MIP_cut and/or ::MIP_lazy after a constraint.
For Gurobi, see share/minizinc/linear/options.mzn for their exact meaning.