How to control Objective function

Dear GAMS friend,

Say,
set k product type /K1*K3/;


parameter M(k) amount of unsatisfied demand /K1 500
K2 600
K3 800/;



Objective function (to minimize unsatisfied demand), Z=M(k)

Now If we want to Minimize, Z=M(k), and want to run the model and see the results separately for every type of products, How can it be controlled on GAMS?





Regards,
Syed


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/groups/opt_out.

Just to clarify more,


we just consider an example, say disruptions cost is expressed as , sum(j, F(j)*X(j)+sum((i,j), h(i)*d(i,j)*Y(i,j,s)
Now, we want to minimize the maximum Budget (Given U) for disruptions management ,

Minimize Z=U
subject to,
eq(s)…sum(j, F(j)*X(j)+sum((i,j), h(i)*d(i,j)*Y(i,j,s)=l=U, It is treated as hard constraints in optimization modeling.

In usual practice we minimize, Z=sum(j, F(j)*X(j)+sum((i,j), h(i)*d(i,j)*Y(i,j,s). If now we have several disruptions scenario and the budget for each scenario Us is given , we can express Minimize, Z=U(s), is that right?

Regards,
Syed

On Tuesday, November 5, 2013 11:50:45 PM UTC+9, Syed Ali wrote:

Dear GAMS friend,

Say,
set k product type /K1*K3/;


parameter M(k) amount of unsatisfied demand /K1 500
K2 600
K3 800/;



Objective function (to minimize unsatisfied demand), Z=M(k)

Now If we want to Minimize, Z=M(k), and want to run the model and see the results separately for every type of products, How can it be controlled on GAMS?





Regards,
Syed


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/groups/opt_out.

Hi
You can use a dynamic set as follow:
set k /k1,k2,k3/
k2(k)
;
Equatiom obj;
obj(k2)… z=e=m(k2);

K2(k)=no;
loop(k,
K2(k)=yes;
Solve_statement…;
Result(k)=z.l;
K2(k)=no;
);

display Result;
On Nov 5, 2013 7:03 PM, “Syed Ali” wrote:

Dear GAMS friend,

Say,
set k product type /K1*K3/;


parameter M(k) amount of unsatisfied demand /K1 500
K2 600
K3 800/;



Objective function (to minimize unsatisfied demand), Z=M(k)

Now If we want to Minimize, Z=M(k), and want to run the model and see the results separately for every type of products, How can it be controlled on GAMS?





Regards,
Syed


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/groups/opt_out.


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/groups/opt_out.

Thanks dear.


On Fri, Nov 8, 2013 at 3:58 AM, A.R. Bahari wrote:

Hi
You can use a dynamic set as follow:
set k /k1,k2,k3/
k2(k)
;
Equatiom obj;
obj(k2)… z=e=m(k2);

K2(k)=no;
loop(k,
K2(k)=yes;
Solve_statement…;
Result(k)=z.l;
K2(k)=no;
);

display Result;
On Nov 5, 2013 7:03 PM, “Syed Ali” wrote:

Dear GAMS friend,

Say,
set k product type /K1*K3/;


parameter M(k) amount of unsatisfied demand /K1 500
K2 600
K3 800/;



Objective function (to minimize unsatisfied demand), Z=M(k)

Now If we want to Minimize, Z=M(k), and want to run the model and see the results separately for every type of products, How can it be controlled on GAMS?





Regards,
Syed


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/groups/opt_out.


You received this message because you are subscribed to a topic in the Google Groups “gamsworld” group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gamsworld/K_j4DR1vdpk/unsubscribe.
To unsubscribe from this group and all its topics, 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/groups/opt_out.



\

Have fine.
Warm Regards,
Syed Mithun Ali, Assistant Professor, Department of Industrial and Production Engineering, Bangladesh University of Engineering and Technology. Dhaka-1000, Bangladesh.
Mobile no: +8801916034096/+8801718370993
Alternative email: mithun@ipe.buet.ac.bd
http://www.buet.ac.bd/ipe/faculty1.html


\

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/groups/opt_out.