FICO
FICO Xpress Optimization Examples Repository
FICO Optimization Community FICO Xpress Optimization Home
Back to examples browserPrevious exampleNext example

Timetabling and personnel planning

Description
Problem name and type, featuresDifficultyRelated examples
I‑1 Assigning personnel to machines: Assignment problem **** assignment_graph.mos, c6assign.mos
formulation of maximin objective; heuristic solution + 2 different problems (incremental definition) solved, working with sets, while-do, forall-do
I‑2 Scheduling nurses ***
2 problems, using mod to formulate cyclic schedules; forall-do, set of integer, getact
I‑3 Establishing a college timetable *** timetable_graph.mos
many specific constraints, tricky (pseudo) objective function
I‑4 Exam schedule **
symmetry breaking, no objective
I‑5 Production planning with personnel assignment ***
2 problems, defined incrementally with partial re-definition of constraints (named constraints), exists, create, dynamic array
I‑6 Planning the personnel at a construction site ** persplan_graph.mos
formulation of balance constraints using inline if


Further explanation of this example: 'Applications of optimization with Xpress-MP', Chapter 14: Timetabling and personnel planning

mosel_app_9.zip[download all files]

Source Files

Data Files





i3school.dat

! Data file for `i3school.mos'

COURSE: [("Mr Cheese" 1)    1 1
         ("Mrs Insulin" 1)  3 3
         ("Mr Map" 1)       2 2
         ("Mr Effofecks" 1) 0 4
         ("Mrs Derivate" 1) 4 0
         ("Mrs Electron" 1) 3 3
         ("Mr Wise" 1)      1 1
         ("Mr Muscle" 1)    1 0
         ("Mrs Biceps" 1)   0 1]

NAMES: ["Mon" "Tue" "Wed" "Thu" "Fri"]

Back to examples browserPrevious exampleNext example