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: 5 months ago

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

Post by wutuhan » 5 months 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: 1 year ago

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

Post by cladelpino » 5 months 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