how to display only one value in a set of parameters?

Hi, all,

I have a set of parameters like:
set i unit /1*10/;
Parameter capa(i) /1 10, 2 1, 3 1, 4 1, 5 1, 6 1, 7 1, 8 1, 9 1, 10 10/;

I only want to display one of them, for examaple the second one.

I wrote:
display capa(‘2’);
but not work.

Can someone help me? Thanks

Miner


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.

hi you must change define in section parameters

On Thursday, December 10, 2015 at 11:27:40 AM UTC+3:30, miner wrote:

Hi, all,

I have a set of parameters like:
set i unit /1*10/;
Parameter capa(i) /1 10, 2 1, 3 1, 4 1, 5 1, 6 1, 7 1, 8 1, 9 1, 10 10/;

I only want to display one of them, for examaple the second one.

I wrote:
display capa(‘2’);
but not work.

Can someone help me? Thanks

Miner


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 https://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.

Hi Miner



You have to define a parameter which will hold the value for “2”, e.g.



Parameter showcapa;



Showcapa = capa(“2”);



Display showcapa;



Cheers

Renger





From: gamsworld@googlegroups.com [mailto:gamsworld@googlegroups.com]
Sent: Montag, 4. Januar 2016 21:47
To: gamsworld
Subject: Re: how to display only one value in a set of parameters?



hi you must change define in section parameters

On Thursday, December 10, 2015 at 11:27:40 AM UTC+3:30, miner wrote:

Hi, all,



I have a set of parameters like:

set i unit /1*10/;

Parameter capa(i) /1 10, 2 1, 3 1, 4 1, 5 1, 6 1, 7 1, 8 1, 9 1, 10 10/;



I only want to display one of them, for examaple the second one.



I wrote:

display capa(‘2’);

but not work.



Can someone help me? Thanks



Miner


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 https://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.


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 https://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.