FUNCTION REFERENCE

intlinprog

Minimize a mixed integer linear objective by branch and bound.

Minimize a mixed integer linear objective by branch and bound.

Syntax

[x, fval, exitflag, output] = intlinprog(f, intcon, A, b, Aeq, beq, lb, ub, options)

Syntax

x = intlinprog(problem)

intcon contains positive integer indices <= n. Other variables are continuous.

Bounds on integer variables are rounded inward and integer outputs are rounded.

Arguments after intcon can be omitted. Problem fields: f,intcon,Aineq,bineq,

Aeq,beq,lb,ub,options. Empty f requests integer feasibility. LP relaxations use

linprog's homogeneous self-dual method. Only certified infeasibility prunes a

failed relaxation; unresolved nodes retain a limit status. Search is depth first

until an incumbent, then best bound. Branching is most fractional, ties by lowest

index. MaxNodes defaults to 10000; no more than 100000 open nodes and a bounded

dense queue workspace. IntegerTolerance defaults to 1e-6. RelativeGapTolerance

and AbsoluteGapTolerance default to zero. Gap normalization uses max(1,abs(fval)).

output: numnodes, iterations (same count), relativegap, absolutegap,

constrviolation, message. Exitflag: 1 proved optimal within gap tolerances,

2 limit with integer feasible point, 0 limit without one, -2 certified integer

infeasibility, -3 checked integer feasible base and scalable recession ray.

An unbounded relaxation alone cannot certify mixed integer unboundedness.

For -2, -3 or 0 without an incumbent, x and fval are []. A feasible integer

incumbent is returned for exitflag 2; internal recession rays are never x.

Differences from MATLAB: dense problems, no cuts or parallel node search.

Algorithm names map to the LP kernel. There is no simplex: LP relaxations

with several optima may return non-vertex points. No lambda output for integers.

Example

[x,f]=intlinprog([-3;-2],[1;2],[2 1],3,[],[],[0;0],[1;1])

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.