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: 19
Joined: 3 weeks ago

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

Post by wutuhan » 1 week 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: 98
Joined: 1 year ago

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

Post by cladelpino » 1 week 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