change variable type Topic is solved

Problems with modeling
Post Reply
mh.akbari
User
User
Posts: 5
Joined: 4 years ago

change variable type

Post by mh.akbari »

Hello
Is it possible to change variable type for example from binary to continuos?
Thanks
User avatar
bussieck
Moderator
Moderator
Posts: 1037
Joined: 7 years ago

Re: change variable type

Post by bussieck »

In general no, but you can set .prior suffix to inf to make a discrete variable continuous, see https://www.gams.com/latest/docs/UG_Var ... __2f_prior.

-Michael
Post Reply