Hi,
I would like to write a constraint containing an expression with the
value of a variable from a prior solve.
I don't want to define a new parameter to transfer the solution to the
next solve, can I use user defined suffix for that?
For example:
suffix initial;
var X;
subject to test: X>=1+X.initial;
minize obj:X;
let X.initial := 0;
solve;
(>>X=1)
let X.initial := X.val;
solve;
(>>X=2)
This works on this simple example, but in a more complex model, using
user defined suffix inside model expression causes ampl to crash!
Thanks, Benoit.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "AMPL Modeling Language" group.
To post to this group, send email to
ampl@...
To unsubscribe from this group, send email to
ampl-unsubscribe@...
For more options, visit this group at
http://groups.google.com/group/ampl?hl=en-~----------~----~----~----~------~----~------~--~---