Skip to main content

Module milp

Module milp 

Source
Expand description

Mixed-integer linear programming by branch and bound (SciPy’s optimize.milp, which uses HiGHS): a LinearProgram in which some variables must take integer values.

See the book entry Levenberg-Marquardt for systems, mixed-integer programming and truncated Newton.

Structs§

MilpOptions
Options for milp (SciPy’s options).
MilpResult
The result of milp.

Enums§

MilpStatus
The outcome of milp.

Functions§

milp
Minimises cᵀx over a LinearProgram’s constraints with x[i] integer where integrality[i] (SciPy’s milp). Branch and bound: each node solves the LP relaxation with tightened bounds; a relaxation no better than the best integer point found (the incumbent) is pruned; an integral one becomes the incumbent; otherwise the most fractional variable xⱼ = v splits the node into xⱼ ≤ ⌊v⌋ and xⱼ ≥ ⌈v⌉. Nodes are explored best bound first, and the search stops when the incumbent is within mip_rel_gap of the best open bound.