Initializing help system before first use

Creating the Mosel Model

Now that we have a general understanding of the example and tasks involved, we are ready to create our Mosel model for this tutorial.

For this tutorial, we will use the following model created using Xpress IVE:

What you see above is, for the most part, a typical Mosel model. However, note that the second line of the model uses the fssappstudio package; this package contains the additional methods to read or write the input and results in formats that are understood by FICO Application Studio.

The main differences from a typical model is how we read input and write the results.
  • For input, we call appsxml_import("input") followed by 'initializations from' blocks (in this case one block). No matter how many scalars or arrays your model requires, it will always follow this pattern.
  • For writing results, we have a sequence of initializations to blocks followed by appsxml_export("result"). Use this pattern for exporting whatever scalars or arrays you want your model to publish.