intlinprog
Mathematical Programming
Mixed-integer linear programming via HiGHS: minimize f'*x where x(intcon) are integer. intcon is a vector of 1-based indices of integer variables.
Syntax
intlinprog(f, intcon, A, b)
intlinprog(f, intcon, A, b, Aeq, beq, lb, ub)
Examples
% Binary knapsack: maximize value, weight <= 15 result = intlinprog([-10, -8, -6], [1, 2, 3], [5, 4, 3], [15], [], [], [0,0,0], [1,1,1])▶ Run
See Also
Try SimLab — Free MATLAB® Alternative
466 functions. Runs in your browser. No install.
Open SimLab