How to use the result of one model as the initial value of another model?

Problems with syntax of GAMS
Post Reply
wutuhan
User
User
Posts: 20
Joined: 1 year ago

How to use the result of one model as the initial value of another model?

Post by wutuhan » 1 year ago

How can I use the result of one model as the initial value of another model conveniently? Must I copy and paste the values one by one?

cladelpino
User
User
Posts: 108
Joined: 2 years ago

Re: How to use the result of one model as the initial value of another model?

Post by cladelpino » 1 year ago

If there are two solve statements in the same file, in the second one every shared variable will have its value (.l attribute) set by the first solve.


Post Reply