Purpose
Provide an initial value
for an SLP variable
Synopsis
procedure setinitval(Var:mpvar, Value:real)
Arguments
Var
|
the variable being assigned an initial value
|
Value
|
initial value to be assigned to the variable
|
Example
The following code fragment assigns the initial values 1, 1.1, 1.2 etc to
the variables V(i):
declarations
V: array(1..10) of mpvar
end-declarations
forall (i in 1..10) setinitval(V(i),1+(i-1)/10)
Further information
This function assigns
Value to
Var as the initial value
for the SLP optimization. In general, all SLP variables (
mpvars which have
nonlinear coefficients, or which are involved in nonlinear coefficients) should be given
initial values, because the default values used by Xpress-SLP may not be very good.
setinitval is equivalent to
SLPDATA("IV").
Related topics
If you have any comments or suggestions about these pages,
please send mail to docs@dashoptimization.com.