Setting up the nurses model and data

Describes the elements of the model.

Use the File > New > Example menu command to open the nurses example.

The IDE displays the nurses project in the OPL Projects Navigator.

Open the model in the editing area. Since this is a rather long model, it cannot be shown entirely. Scroll down or resize the main window to see more of it.

The model instance, nurses.mod, contains the following elements:

  • nurses

  • nurse shifts

  • nurse teams

  • maximal and per-nurse work time

  • nursing skills requirements

  • hospital departments

  • department incompatibilities

  • vacations

  • required assignments

Double-click nurses.dat in the OPL Projects Navigator to display the data instances associated with this model in the editing area.

Notice that the Outline window presents a convenient view of the model or data elements.