Maximum value can be calculate correctly using the code attached. I hope to get the
. Can you tell me how to change this code? I choose three positions from 5 available positions. Unchoose part have I=0, choose part follow the restrict:F=F+[(c*(I.^2)')./d' <= 1];
d=[401933.568419812,401933.568419812,401933.568419812,401933.568419812,401933.568419812];
c=[1,0.385740902327350,0.252086400923626,0.180051756213799,0.134338625773115;0.385740902327350,1,0.385740902327350,0.252086400923626,0.180051756213799;0.252086400923626,0.385740902327350,1,0.385740902327350,0.252086400923626;0.180051756213799,0.252086400923626,0.385740902327350,1,0.385740902327350;0.134338625773115,0.180051756213799,0.252086400923626,0.385740902327350,1];
I=intvar(1,5);
pos=binvar(1,5);
intvar Ibase;