EMP Formulation Topic is solved

Problems with syntax of GAMS
Post Reply
Janisch
User
User
Posts: 38
Joined: 3 years ago

EMP Formulation

Post by Janisch »

Hello all,

How can I generically import the data circled in the image into an emp file?
EMP File image.JPG
Suppose I load the data (a1=0.3 , a1=0.95, b1=0.5, b2=1, c1=0.2, c2=1.05) from Excel as scalars. As an example serves the model
Glad to have your help :)

Many greetings
Janisch
Transport_Stochastic.gms
(2.65 KiB) Downloaded 186 times
Fred
Posts: 372
Joined: 7 years ago

Re: EMP Formulation

Post by Fred »

Hi,

The following shoudl do the trick.

Code: Select all

putclose emp '* problem %gams.i% ' /
             'randvar bf discrete ' a1 ' ' a2 ' ' b1 ' ' b2 ' ' c1 ' ' c2 /
             'stage 2 bf u demand';
I hope this helps!

Fred
Janisch
User
User
Posts: 38
Joined: 3 years ago

Re: EMP Formulation

Post by Janisch »

Perfect! Thank you :)
Post Reply