%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Matlab/Octave script to solve this optimization problem:
%
% min f(x)=c'x
% s.t. A * x <= b
% Ae * x = be
% lb <= x <= ub
% x(I) is integer
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% objective function
c=[-30;-80];
% inequality (upper bound) constraints
A=[1 1 ; 5 7];
b=[100;560];
% equality constraints
Ae=[]
be=[]
% box constraints on some variables
lb=[27;0];
ub=[inf;inf]
% declare the indices of the integer variables
I=[]
% and we request that the results be displayed to us
dflag=true;
% call the function
[xstar,zstar]=mip(c,A,b,Ae,be,lb,ub,I,dflag);