Hi, I am very new to Matlab and I have the following question, but first the code:
x1 = sym('x1',[NA,NB]); % [ 0 , inf ]
x2 = sym('x2',[NA,NB]); % [ 0 , inf ]x3 = sym('x3',[NA,NB]); % [ 0 , inf ]x4 = sym('x4',[NA,NB]); % [ -inf , inf ]
%---
for i = 1:NA for ii = 1:NB C1(i,ii) = beqC1(i,ii) == x8(i,ii) + x7(i,ii) + x9(i,ii) + x2(i,ii); C2(i,ii) = beqC2(i,ii) == x8(i,ii) + x3(i,ii) + x6(i,ii); endend%---[Aeq,beq] = equationsToMatrix([C1, C2], [x1, x2, x3, x4]);f = sum(x5(:));[x,costopt,exitflag,output] = intlinprog(f,[],[],[],Aeq,beq,[],[],[]);
Since I am a total beginner using Matlab, my question will be quite easy: How can I make this optimization problem work, so that it is in line with the following mathematical problem?
Since I already searched in the forum and on the web for solutions, without finding THE RIGHT guideline I would be more than happy to have expert help to code this problem. 🙂
Thank you!
Best Answer