About 'srtee.gms' (scenario construction code)

Hello,

In srtree.gms code, what the following highlighted statements mean?

$eval nnodes card(s)*(card(t)-1)

set n nodes / n0*n%nnodes% /;

Your kind help will be highly appreciated.

Regards,

Morteza Shabanzadeh
وبلاگ شخصی مرتضی شعبان زاده



image










وبلاگ شخصی مرتضی شعبان زاده
وبلاگ شخصی مرتضی شعبان زاده - I live in the present, appreciate the past, and focus on the future - وبلاگ شخصی مرتضی شعبان زاده
View on mortezash.blogfa.com

Preview by Yahoo







\

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.

This evaluates the expression after nnodes and stores. gams replaces %nnodes% by this value everywhere it is in your code.You can find these tricks in mccarls extended user guide in your gams/docs directory or directly under help.
Cheers
Renger

Sent from my iPhone

Am 10.11.2014 um 21:35 schrieb “‘.::Morteza Shabanzadeh::.’ via gamsworld” :

Hello,

In srtree.gms code, what the following highlighted statements mean?

$eval nnodes card(s)*(card(t)-1)

set n nodes / n0*n%nnodes% /;

Your kind help will be highly appreciated.

Regards,

Morteza Shabanzadeh
وبلاگ شخصی مرتضی شعبان زاده

image

وبلاگ شخصی مرتضی شعبان زاده
وبلاگ شخصی مرتضی شعبان زاده - I live in the present, appreciate the past, and focus on the future - وبلاگ شخصی مرتضی شعبان زاده
View on mortezash.blogfa.com

Preview by Yahoo


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.


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 Renger,

I also have a question regarding the same gams file “srtree”. After the dynamic set “nn” is initialized, this loop start to assign values to random variables.

"loop(s,
loop(t$(ord(t):

Hello,

In srtree.gms code, what the following highlighted statements mean?

$eval nnodes card(s)*(card(t)-1)

set n        nodes / n0*n%nnodes% /;

Your kind help will be highly appreciated.

Regards,

Morteza Shabanzadeh
وبلاگ شخصی مرتضی شعبان زاده



image










وبلاگ شخصی مرتضی شعبان زاده
وبلاگ شخصی مرتضی شعبان زاده - I live in the present, appreciate the past, and focus on the future - وبلاگ شخصی مرتضی شعبان زاده
View on mortezash.blogfa.com

Preview by Yahoo








--
To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+...@googlegroups.com.
To post to this group, send email to gams...@googlegroups.com.
Visit this group at http://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 http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.

Hi Yalin

This would take a little bit more than just my usual 5 minutes.

I suggest you compare and draw the tree that is the result of this formulation and compare it to the manual/paper.

Cheers

Renger



From: gamsworld@googlegroups.com [mailto:gamsworld@googlegroups.com] On Behalf Of Yalin Huang
Sent: Wednesday, November 19, 2014 10:57
To: gamsworld@googlegroups.com
Subject: Re: About ‘srtee.gms’ (scenario construction code)



Hi Renger,



I also have a question regarding the same gams file “srtree”. After the dynamic set “nn” is initialized, this loop start to assign values to random variables.



"loop(s,

loop(t$(ord(t):

Hello,



In srtree.gms code, what the following highlighted statements mean?



$eval nnodes card(s)*(card(t)-1)

set n nodes / n0*n%nnodes% /;


Your kind help will be highly appreciated.

Regards,

Morteza Shabanzadeh
وبلاگ شخصی مرتضی شعبان زاده






















وبلاگ شخصی مرتضی شعبان زاده

وبلاگ شخصی مرتضی شعبان زاده - I live in the present, appreciate the past, and focus on the future - وبلاگ شخصی مرتضی شعبان زاده

View on mortezash.blogfa.com


Preview by Yahoo











\

To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+...@googlegroups.com.
To post to this group, send email to gams...@googlegroups.com.
Visit this group at http://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 http://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 http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.