File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,14 @@ Current solution* refers to the solution you are trying to find while using the
6161- ` --save-warm-start ` and ` --warm-start ` both use an extension of the ` gurobi_direct ` solver interface which is
6262 generally slower than the ` gurobi ` solver interface (see section above).
6363
64+ ## Model formulation
65+
66+ The way the model is formulated often has an impact on performance. Here are some rules of thumb.
67+
68+ - For constraints, it is faster to use ` <= ` and ` >= ` rather than ` == ` when possible. If your constraint
69+ should be an equality, try to think about whether it is already being pushed against one of the bounds
70+ by the objective function.
71+
6472## Tools for improving performance
6573
6674- [ Memory profiler] ( https://pypi.org/project/memory-profiler/ ) for generating plots of the memory
You can’t perform that action at this time.
0 commit comments