copysoltoinit


Purpose
Copy solution values to initial values.
Synopsis
procedure copysoltoinit
Example
The following copies the solution values of all variables in an optimization run to their initial values and then sets a different initial value for variable x(1).
uses "mmnl"
declarations
 x: array(1..10) of mpvar
 y,z: mpvar
end-declarations
...
maximize(x(1)*x(3) + ln(y+z))
copysoltoinit
setinitval(x(1), 0)
Further information
This procedure copies the solution values of decision variables in the immediately preceding optimization run to their initial values for the next run. Doing so it overrides any previously set initial values for the involved variables. However, the settings for decision variables that did not occur in the previously solved problem remain unchanged.
Related topics
clearinitvals, setinitval.
Module
mmnl


If you have any comments or suggestions about these pages, please send mail to support@fico.com.

© Copyright 2001-2013 Fair Isaac Corporation. All rights reserved.