Skip to main content

milp

Function milp 

Source
pub fn milp(
    problem: &LinearProgram,
    integrality: &[bool],
    options: MilpOptions,
) -> Result<MilpResult, ErrorsJSL>
Expand description

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.