Originally posted by: giask1
I use this call to cplexbilp from matlab
rhs_b1=1.90.*ones(length(beq),1);
rhs_b2=1.90.*ones(length(beq),1);
%solves the binary integer programming problem min f*x.
[X,fval,exit_flag,output]=…
cplexbilp(f_min,[Aeq;-Aeq],[(beq+rhs_b1(:));-(beq-rhs_b2(:))],[ ],[],X_guess,options);% Aineq*x < & > bineq.
Instead of the simpler:
[X,fval,exit_flag,output]=…
cplexbilp(f_min,[],[],Aeq,beq,X_guess,options); % Aeq*x = bineq
this because I have not find the way to control the tolerance on the equality constraints
%options.mip.tolerances.absmipgap=2; % ????
everything works perfectly but I guess that my workaround (with a larger matrix of coefficients) makes the problem computationally heavier.
Any suggestion? Thank you in advance. g
#CPLEXOptimizers#DecisionOptimization