XPRBdelsolvar
XPRBdelsolvar |
Purpose
Synopsis
int XPRBdelsolvar(XPRBsol, XPRBvar var);
Arguments
sol
|
BCL reference to a previously created solution.
|
var
|
BCL reference to a variable.
|
Return value
0 if function executed successfully, 1 otherwise.
Example
This code deletes the variable
x1 from the solution
sol1.
XPRBprob prob; XPRBsol1 sol1; XPRBvar x1; ... x1 = XPRBnewvar(prob, XPRB_UI, "abc3", 0, 100); sol1 = XPRBnewsol(prob); XPRBsetsolvar(sol1, x1, 5.4); ... XPRBdelsolvar(sol1, x1);
Further information
This function deletes a variable (assigned to a value) from the given solution.
Related topics