XPRSdestroyprob
XPRSdestroyprob |
Purpose
Removes a given
problem and frees any
memory associated with it following manipulation and optimization.
Synopsis
int XPRS_CC XPRSdestroyprob(XPRSprob prob);
Argument
prob
|
The problem to be destroyed.
|
Example
The following creates, loads and solves a problem called
myprob, before subsequently freeing any resources allocated to it:
XPRScreateprob(&prob); XPRSreadprob(prob,"myprob",""); XPRSlpoptimize(prob,""); XPRSdestroyprob(prob);
Further information
After work is finished, all problems must be destroyed. If a
NULL problem pointer is passed to
XPRSdestroyprob, no error will result.
Related topics