Executing the nurses project (2)

Explains how to observe the new result after changing the data.

After you have changed an assignment value as shown in Changing the data, you are going to execute the project again and see the new result.

To observe the new result:

  1. Right-click on the nurses project and select Run > Basic Configuration. Click OK in the popup to save the modified file.

    The Conflicts and Relaxations tabs are now empty while the Solutions tab displays the solutions found. You now get a feasible solution with cost 24950, as shown in the following screen capture.

    Figure 1. Feasible model after change in data
    Feasible nurses solution after changing data

    You can also see that Anne is assigned to Emergency on the “Monday 8 to 12” shift (not to Consultation). To view Anne’s assignment, do as follows.

  2. In the Problem Browser, scroll down in the Name column to Decision variables / NurseAssignments .
    Figure 2. Problem Browser, scrolling to variables/NurseAssignments
    Problem browser for nurses.mod
  3. Click the Show data view button Show data view buttonin the NurseAssignments row. The table of nurse assignments opens.
    Figure 3. A table view of NurseAssignments
    Table view of the NurseAssignments table

    The second line shows that Anne is assigned to Emergency, Monday 8-12.

    For further information on views of model elements, see Understanding the Problem Browser in Getting Started with the IDE.

    Now you may want to know more on How relaxation and conflict search works.