Originally posted by: Artt
Hi,
Below is the model. I am now looking into how I can run my model using CPLEX interactive. So far, I have been using matlab API.
Thanks.
lb = [zeros(Nbid+length(Nzone)*Hofday,1)];
ub = [qbid; 100000*ones(length(Nzone)*Hofday,1)];
f = [pbid; BB1{day,1}];
%----------------------------------------------------------
% Populate and solve the model using CPLEX
%----------------------------------------------------------
cplex = Cplex();
cplex.Model.sense = 'minimize';
cplex.DisplayFunc = [];
cplex.Model.Q = BB2{day,1};
cplex.addCols(f,[],lb,ub);
cplex.addRows(zeros(Hofday,1),AA{day,1},zeros(Hofday,1), char(ones([Hofday 1])*'d'));
cplex.addRows(lowerb{day,1}, DD{day,1}, upperb{day,1}, char(ones([Hofday*(length(Nzone)-1) 1])*'cong'));
solution = cplex.solve();
solution = solution.x;
cost1 = cplex.Solution.objval;
dual = cplex.Solution.dual;
#CPLEXOptimizers#DecisionOptimization