Set an initial
value (start value) for a variable.
procedure setinitval(x:mpvar, val:real)
A decision variable
A real number to be used as initial value
The following sets an initial value of 0 for variable x. For y its solution from the preceding optimization is set as its new initial value.
This procedure sets an initial value for a decision variable. Initial values are used by nonlinear solvers as a (good) starting
point for the search. It is in general not required that the initial values be part of a feasible solution to the optimization
problem. All previously set initial values can be removed by calling clearinitvals
. The procedure copysoltoinit
can be used to turn the solution of a previous optimization run into initial values for the next run.
If you have any comments or suggestions about these pages,
please send mail to firstname.lastname@example.org.
© Copyright 2001-2013 Fair Isaac Corporation. All rights reserved.