nag_opt_sparse_mps_free (e04myc) frees the memory allocated by
nag_opt_sparse_mps_read (e04mzc).
nag_opt_sparse_mps_free (e04myc) 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.
nag_opt_sparse_mps_free (e04myc) can be used to free a subset of the allocated arrays by passing null pointers for those arguments which you do not wish to free.
None.
None.
Not applicable.
nag_opt_sparse_mps_free (e04myc) is not threaded in any implementation.
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.
See
Section 10 in nag_opt_sparse_mps_read (e04mzc).