EMP Formulation

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 :slight_smile:

Many greetings
Janisch
Transport_Stochastic.gms (2.65 KB)

Hi,

The following shoudl do the trick.

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

I hope this helps!

Fred

Perfect! Thank you :slight_smile: