Dear All,

I am trying to code multi-objective optimization model by using weighted sum. For different weights, I would like to run the model by creating loop. I keep getting error code indicating that ( in objective function) uncontrolled set is entered as constant. I am not sure how to fix this error code. Before introducing the loop statement, model was working but now it is not.

If one of you help me out why I may get uncontrolled set is entered error message for objective function, I would appreciate it.

Thank you very much in advance.

Regards.

"obj =e=lambda(w)*(sum(t,CS(t))/(card(t)))+(1-lambda(w))*(-sum((i,m,t), l(i)*u(i,m)*x(i,t,m))));

set w’ lambda’/1*9/;

parameter

lambda(w) ‘weight on objective function’

/

1 0.1

2 0.2

3 0.3

4 0.4

5 0.5

6 0.6

7 0.7

8 0.9

9 0.9

/;

alias(w,w1);

objective … obj =e=lambda(w)*(sum(t,CS(t))/(card(t)))+(1-lambda(w))*(-sum((i,m,t), l(i)*u(i,m)*x(i,t,m))));

model thesisdeterministic /all/;

parameter lambda(w1);

loop(w1,

lambda(w1)=no;

lambda(w1)=yes;

solve thesisdeterministic maximizing obj using mip;

–

To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.

To post to this group, send email to gamsworld@googlegroups.com.

Visit this group at http://groups.google.com/group/gamsworld.

For more options, visit https://groups.google.com/d/optout.