0

I have this OR model in GAMS and i need to define a parameters which has poisson distribution, my code is:

Scalar Landa 'mean for poisson distribution' /3/;
Parameter L;
L=Poisson;

I get the error $140 which means unknown symbol Does anybody know how to fix this?

Sepideh Gh
  • 97
  • 6

2 Answers2

1

You can define those variables in the emp.info file.

Add the following to you your GAMS code:

Scalar Landa 'mean for poisson distribution' /3/;
file emp / '%emp.info%' /; put emp '* problem %gams.i%'/;
$onput
randvar L poisson Landa
$offput
David Prentiss
  • 548
  • 1
  • 6
  • 16
0

try this:

Scalar Landa 'mean for poisson distribution' /3/;
Parameter L;
L=E=Poisson;

Hope it helps!

Manuelpalcaraz
  • 69
  • 3
  • 10