random variable in gams

Problems with modeling
Post Reply
anan
User
User
Posts: 20
Joined: 5 years ago

random variable in gams

Post by anan »

hello,
I would like to ask how to model a random variable with discrete probabilities in gams?
I used emp before to model the chance constraint but I would like to ask if there is any other ways to model it without emp?

thank you,
ANAN
A.Sen
User
User
Posts: 4
Joined: 6 years ago

Re: random variable in gams

Post by A.Sen »

discreteRV.gms
(481 Bytes) Downloaded 263 times
Hi,
Maybe not the most optimum method to generate random variables in GAMS, but you can find an example in the attached file.
Sincerely
anan
User
User
Posts: 20
Joined: 5 years ago

Re: random variable in gams

Post by anan »

thank you for your help

I was trying to use chance constraint with one random variable but the equation is indexed on time there is a problem in chance constraint equation can you help me?
anan
User
User
Posts: 20
Joined: 5 years ago

Re: random variable in gams

Post by anan »

Dear A.Sen ,
thank you for the attached example I would like to ask you if possible can you help me to generate random variable with Beta distribution?

thank you.
Post Reply