Originally posted by: felycite28
Yes , it helped but it still got en error , I have to use indexMin again for the other operation . Imagine a; data. b is also decision variable. Y[t] is the latest line which will correspond the latest line , corresponds 70 in the previous post. It will multiply with 2,5,7 in order.
min (sum z in t) Y[z]*a*b
int A=6;
z=3;
range K=1..A;
int AR[K]=[20 ,30, 40, 50, 60, 70];
M[k][z]=[[1 2 3 ]// this line corresponds 20
[0.2 0.3 0.4]// this line corresponds 30 so on
[.................]
[ 2 5 7]] // this line corresponds 70
I did:
forall (z in t, i in K)(i==indexMin)=>(Y[z]==M[i][z]);
It did not turn result, and said
CPLEX Error 5002: Q in objective is not positive semi-definite. since I described the Y[z] as dvar, it gives this result but It is not that much decision variable . Is there any other way to do it ? It must be , I guess.
Thank you so much
#DecisionOptimization#OPLusingCPLEXOptimizer