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: 6 years ago

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

Post by wutuhan »

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: 7 years ago

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

Post by cladelpino »

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