XPRBnewsol
XPRBnewsol |
Purpose
Synopsis
XPRBsol XPRBnewsol(XPRBprob prob);
Argument
prob
|
Reference to a problem.
|
Return value
Reference to the new solution if function executed successfully,
NULL otherwise.
Example
The following creates a solution sol1.
XPRBprob prob; XPRBsol sol1; ... sol1 = XPRBnewsol(prob);
Further information
This function creates an
XPRBsol solution. It returns the address of the solution that is taken as a parameter in the functions for adding variables, such as
XPRBsetsolvar, deleting variables
XPRBdelsolvar or the entire solution
XPRBdelsol. Note that
XPRBsol solutions represent user-defined solutions to be passed to the Optimizer, not solutions retrieved from the Optimizer.
Related topics
XPRBdelsol,
XPRBdelsolvar,
XPRBgetsolsize,
XPRBgetsolvar,
XPRBprintsol,
XPRBsetsolarrvar,
XPRBsetsolvar.