Staff-Scheduling Example Using the LINGO DLL

To illustrate interfacing with the LINGO DLL, we will again make use of the Pluto Dogs staff scheduling example.  We will create examples using both the Visual C++ and Visual Basic programming languages. We will construct a dialog box that resembles the following:

page308xp

The user enters the staffing requirements in the cells of the Needs column and presses the Solve button. The application then extracts the staffing requirements from the dialog box, passes them along with a model to the LINGO DLL for solution, and places the results back into the dialog box for viewing. Specifically, it shows the number of employees to start on each given day in the Start column, the number of staff on duty in the On Duty column, and the total number of staff required in the Total cell.

As an example, here is how the dialog box will appear after a sample run:

page309xp