Initializing help system before first use

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
Module

© 2001-2024 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.