Initializing help system before first use

Packages

A package is a library written in the Mosel language (this feature is introduced by Mosel 2.0). Its structure is similar to models, replacing the keyword model by package. Packages are included into models with the uses statement, in the same way as this is the case for modules. Unlike Mosel code that is included into a model with the include statement, packages are compiled separately, that is, their contents are not visible to the user.

Typical uses of packages include

  • development of your personal `tool box'
  • model parts (e.g., reformulations) or algorithms written in Mosel that you wish to distribute without disclosing their contents
  • add-ons to modules that are more easily written in the Mosel language

Packages may define new constants, subroutines, and types for the Mosel language as shown in the following examples (the first two examples correspond to the first two module examples of the Mosel Native Interface User Guide).