Iteration in Objective Function

Dear Users;

I want to maximize the following objective function in N iteration. Z*(i)=max X(i). It mean, i want to maximize this objective function based on each variable separately. How can I do it?


To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.

Dear Hossein,
try the following:

alias(i,n)
set source(n)

OBJ(source)…objective=E=x(source);

MODEL network /ALL/;
loop(k,
source(n)=no;
source(k)=yes;
SOLVE network using LP maximizing objective;
);

I hope this helps you.

Date: Wed, 20 Jun 2012 16:19:00 +0430
Subject: Iteration in Objective Function
From: hossein.karimi8866@gmail.com
To: gamsworld@googlegroups.com

Dear Users;

I want to maximize the following objective function in N iteration. Z*(i)=max X(i). It mean, i want to maximize this objective function based on each variable separately. How can I do it?


To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.


To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.

Thanks so much

On 6/20/12, Hakan Kutucu wrote:

Dear Hossein,try the following:
alias(i,n)set
source(n)…OBJ(source)…objective=E=x(source);…MODEL
network /ALL/;loop(k, source(n)=no; source(k)=yes; SOLVE
network using LP maximizing objective;
);
I hope this helps you.
Date: Wed, 20 Jun 2012 16:19:00 +0430
Subject: Iteration in Objective Function
From: hossein.karimi8866@gmail.com
To: gamsworld@googlegroups.com

Dear Users;

I want to maximize the following objective function in N
iteration. Z*(i)=max X(i). It mean, i want to maximize this objective
function based on each variable separately. How can I do it?

“gamsworld” group.

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

To unsubscribe from this group, send email to
gamsworld+unsubscribe@googlegroups.com.

For more options, visit this group at
http://groups.google.com/group/gamsworld?hl=en.


“gamsworld” group.
To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to
gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/gamsworld?hl=en.


\