copysoltoinit


Purpose
Set the initial values of all SLP variables to their value in the current solution
Synopsis
procedure copysoltoinit
Example
The following code fragment assigns the initial values 1, 1.1, 1.2 etc to the variables V(i), solves the problem, sets the initial values to those from the solution and solves again:
declarations
  V: array(1..10) of mpvar
end-declarations

forall (i in 1..10) setinitval(V(i),1+(i-1)/10)
...
SLPmaximize
...
copysoltoinit
SLPmaximize
Further information
This function sets the initial value of each SLP variable to its current solution value. A good starting point can help to find a solution and the values from one solution are often suitable as a starting point for a similar problem. Individual values can still be assigned after copysoltoinit and before the optimization.
Related topics
clearinitvals, setinitval, SLPDATA("IV")


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