Initializing help system before first use

Using module nlsolv

The nlsolv module makes it possible to export a problem in the .nl file format, solve it using an external solver supporting this format, and retrieve solution values back into the Mosel model. To use this module the following line must be included in the header of the Mosel model file:

 uses 'nlsolv'

Using alternative solvers through nlsolv does not require any additional C coding, after installing a suitable solver executable the Mosel model merely needs to be configured via a couple of parameter settings.

This section explains how to setup nlsolv for various solvers and it also provides a documentation of the parameters and subroutines defined by this module.

For the handling of nonlinear expressions / constraints (type nlctr) the module nlsolv uses the functionality provided by the module mmnl that forms part of the standard Mosel distribution. All other functionality defined by mmnl, such as its subroutines for handling initial values, is equally available in models using nlsolv.

The module nlsolv supports the definition of multiple problems—it extends the definition of the type mpproblem.