Initializing help system before first use

Configuration with Annotations

Annotations provide a way of including metadata in the model to configure the way in which the model and its entities are manipulated by the system.

Annotations are simply metadata expressed in the model source file that is retained in the resulting BIM file after compilation. A full annotation name is expressed as <category>.<name> where a category is a mechanism to group a set of annotations and other categories. Xpress Insight annotations belong to the insight category.

Declaring Annotations

In the Mosel source file, annotations are included in special comments—a single line annotation is of the form:
!@<category>.<name> <value>
Among other things, annotations give you the potential to define aliases for Mosel entities, so that they are presented in the user interface using their alias names, rather than their original model names. For example, placing the following annotation prior to the frac declaration in the example:
!@insight.alias Outcomes
frac: array(SHARES) of mpvar
sets an alias name that will be used in place of the entity name throughout the user interface.

Entity Role Annotation

Annotations can also inform the system if an entity is an input or a result. Xpress Insight defaults to assuming that entities of primitive types are input entities and mpvar/linctr entities are result entities. However, there are often times, when, say, certain primitive entities are intended as results, in which case they should be annotated.

The following snippet annotates the frac entity as a result (although in this case, as frac is an mpvar, it is not strictly necessary) using the insight.manage annotation:
!@insight.manage result
frac: array(SHARES) of mpvar

Annotation Reference

See the Xpress Insight Mosel Interface Reference Manual for further detailed information about the many available Mosel annotations.

© 2001-2020 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.