INDUSTRY: Business Services

REGION: Europe



To optimize staff shift coverage and personnel management for medium-sized businesses.


With Gurobi, Complevo achieved decreased staff costs and overtimes as well as increased hiring and staff happiness.

COMPLEVO uses Gurobi in its personnel planning and as a result increases personnel satisfaction and productivity.

Stress, hectic pace, sudden change of plans, and overtime used to be the norm in the Discher Bakery, a medium-sized company in Baden-Württemberg, Germany. The personnel planning was done manually and could, for example, be compromised by a sudden notification of illness. This scenario can be found in many small and medium-sized companies. This issue is now something of the past.


The Business Sector

COMPLEVO, a Berlin-based consultancy firm, has designed an automatic personnel planning tool called FREI ZEIT, which significantly increases the transparency and flexibility of planning. Stress, hectic situations and unpleasant surprises do not occur and even special requests can be effortlessly taken into consideration.

FREI ZEIT has been designed for medium-sized businesses and allows automation of optimal personnel planning by using mathematical optimization. The results are even more surprising, seeing as prior to this, in the Discher Bakery optimization models were unheard of.

In Germany, small businesses employees can easily influence how they use their flex-time accounts. However, these accounts have to be managed in order to avoid having an excess of unworked hours and expensive overtime. In this scenario FREI ZEIT steps in and can, for example, try to manage flexi-time. It is also efficient at dealing with issues arising due to sick leave.


The Model

The FREI ZEIT software takes into account all eventualities. The circumstances of the bakery are modeled in a mixed-integer linear programming model. The differing opening times of the branches, the number of sales staff needed together with their desired working hours are incorporated into this model. In this way, individual staff wishes regarding holiday leave can be taken into account, as well as personal scenarios like “On Wednesday afternoon I want to take my grandson to football” or “I would like to have every other Saturday off”. All these scenarios can be formulated as linear constraints with partially integer and binary variables. Gurobi then solves the model, taking them into account.

The bakery staff does not have to understand any of the math going on in the background. Employees can enter individual staff restrictions into a calendar, the program constructs the model and transfers it to the Gurobi optimizer so that a solution can be found. After a few seconds it comes up with the optimal duty-roster. In this way, it not only ensures that individual requests are met, but it also makes sure that the weekly working hours are as evenly distributed amongst employees as possible. If any staff availability changes, the updates can be easily entered and the schedule resolved.

In addition, the employer can choose between various optimization objective functions, like for example a reduction in flexi-time. If several objective functions with a variety of priorities are chosen, then the optimization is carried out hierarchically, one after the other.
The use of Gurobi can also help identify and address any infeasibilities. In an infeasible model there are constraints that contradict each other. For instance, if nobody wants to work on the first Saturday of the month when the branch should be open, then that contradicts itself. Problems like this are resolved in individual discussions. In this case the program could set up a model where, if there are four members of staff, each one must work on the first Saturday in every fourth month.



In the Discher bakery, staff costs were cut by four percent and the number of temporary staff taken on has been reduced by six percent. At the same times, a reduction in the amount of overtime has reduced costs sufficiently that even more staff can cost-effectively be hired. Staff are now happier due to better schedules while the company is paying less overtime.
The aspect that staff are most pleased with is the fact that their individual needs are being catered for on a more regular basis and the extra workload that arises when someone is off sick, is distributed more evenly. Furthermore, the time spent planning for the bakery has seen a significant reduction. Individual requests are all digitally recorded and are automatically taken into account. The three hours per week which was needed for every branch previously has now become three hours monthly in which all seven branches are organized. Digitalization of staff planning has also made invoicing simpler, instead of each branch spending two hours per week on this, it is now done at the push of a button.


Why we work with Gurobi

Gurobi doesn’t just offer an extremely fast solver, but also great flexibility. We can adapt the Gurobi Optimizer to meet our needs.

We have just revised and reformulated the linear optimization model which our software FREI ZEIT is based on. It is extremely straightforward to implement new customer demands and requirements thanks to the Python interface. Moreover, the intuitive and clear way that the Python interface has been written, makes getting used to it very quick.

The scalability of the solver is impressive as any scale of personnel planning problem can be resolved efficiently and within a time limit. It is not unusual for a duty roster to become infeasible, for example whenseveral staff are ill or on vacation and the usual framework cannot be adhered to. Gurobi allows us to simply analyze these unforeseeable occurrences and detect the bottlenecks. This enables us to find a solution which all staff are happy with and that violates as few constraints as possible.

Gurobi’s pricing structure enables us to implement mathematical optimization for middle-sized companies, something which up until now has not been possible due to cost and know-how reasons.

  • Consultancy firm with an emphasis on the development and implementation of software for decision making support
  • Focus on staff and resources implementation planning
  • Caters to customers from the automobile and railroad sectors as well as a variety of medium-sized businesses
  • Distributor of FREI ZEIT software since 2013
  • Medium-sized bakery based in Baden-Württemberg, Germany
  • Seven branches
  • Planning of 40 sales staff via Gurobi and FREI ZEIT
  • Optimal roster planning at the push of a button
  • Suggests a variety of alternatives for roster plans
  • Integrated time tracking means highly accurate monitoring of hours worked

Guidance for Your Journey

30 Day Free Trial for Commercial Users

Start solving your most complex challenges, with the world's fastest, most feature-rich solver.

Always Free for Academics

We make it easy for students, faculty, and researchers to work with mathematical optimization.

Try Gurobi for Free

Choose the evaluation license that fits you best, and start working with our Expert Team for technical guidance and support.

Evaluation License
Get a free, full-featured license of the Gurobi Optimizer to experience the performance, support, benchmarking and tuning services we provide as part of our product offering.
Academic License
Gurobi supports the teaching and use of optimization within academic institutions. We offer free, full-featured copies of Gurobi for use in class, and for research.
Cloud Trial

Request free trial hours, so you can see how quickly and easily a model can be solved on the cloud.