Skip to content

Commit 9c31307

Browse files
committed
Add note on Performance.md
1 parent 10e5d40 commit 9c31307

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/Performance.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)