view a variable

Hello everyone.

In my model, I have water source and water demand streams and each of them has a contamination level ( HN ).in my formulation I have witten :

massload…
sum ( i,f(i,j) * cs(i,‘HN’)) + fw(j) * cf(‘HN’) =L = d(j) * cd(j,‘HN’) ;

f(i,j) shows water stream from source i to demand j
cs shows contamination level in source
cd shows contamination level in demand
fw fresh water flowrate
d(j) demand flow rate

and the contamination level of my model is introduced in a range,for example :

cs.lo ( i , ‘HN’)=0
cs.l ( ‘1’ , ‘HN’)=14
cs.up ( ‘1’ , ‘HN’ )=20
.
.
.



when i run the model,the model gives optimal solution,but i want to figure out,what level of contamination the model has used in order to get the solution?
if in the display command i put " display cs.l ; " ,the model gives the cs initial value that has been introduced in the model as above but when i check it the value doesnt match the answer. and if i omit the " cs.l=14 " form the formulation, the model uses the lwer bound which is zero and it is not a practical answer.


how can I see what value the model will use to get the answer??


thank you all in advance


\

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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

\

short one: make sure the display statement is placed after the solve statement.


On Thu, May 9, 2013 at 3:15 AM, Mohamad Dehghani wrote:

Hello everyone.

In my model, I have water source and water demand streams and each of them has a contamination level ( HN ).in my formulation I have witten :

massload…
sum ( i,f(i,j) * cs(i,‘HN’)) + fw(j) * cf(‘HN’) =L = d(j) * cd(j,‘HN’) ;

f(i,j) shows water stream from source i to demand j
cs shows contamination level in source
cd shows contamination level in demand
fw fresh water flowrate
d(j) demand flow rate

and the contamination level of my model is introduced in a range,for example :

cs.lo ( i , ‘HN’)=0
cs.l ( ‘1’ , ‘HN’)=14
cs.up ( ‘1’ , ‘HN’ )=20
.
.
.



when i run the model,the model gives optimal solution,but i want to figure out,what level of contamination the model has used in order to get the solution?
if in the display command i put " display cs.l ; " ,the model gives the cs initial value that has been introduced in the model as above but when i check it the value doesnt match the answer. and if i omit the " cs.l=14 " form the formulation, the model uses the lwer bound which is zero and it is not a practical answer.


how can I see what value the model will use to get the answer??


thank you all in advance


\

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?hl=en.
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

\