frees the memory allocated by nag_opt_sparse_mps_read (e04mzc)
should be used in conjunction with nag_opt_sparse_mps_read (e04mzc)
, which reads data for a sparse linear or quadratic programming problem from an MPSX file, allocates several arrays, and initializes them with the data contained in the file. nag_opt_sparse_mps_free (e04myc)
is a utility provided for the convenient freeing of this memory. It should be called in order to conserve memory which is no longer required, e.g., following a call to nag_opt_sparse_convex_qp (e04nkc)
(which may be used to solve the problem defined by the MPSX file). Any memory not freed will, of course, be freed when your program terminates.
In addition to allocating the memory freed by this function, nag_opt_sparse_mps_read (e04mzc)
also allocates memory to the
member of the options
structure (if the structure is supplied as an argument). The function nag_opt_free (e04xzc)
should be used to free this memory. You must not
use the standard C function free()
for this purpose.