0

I have a problem with solver configuration. Whether it is possible add to configuration employeeRosteringSolverConfig.xml e.g. heuristics or other algorithms. Because when it adds configurations, application don't run. is it not possible at the moment?

dzeju
  • 1
  • 2
  • 1
    It should be possible. Don't forget to rebuild the application after you change the solver configuration. What exactly have you tried so far and why it didn't work? Error message, exception stack trace please. – yurloc Jan 29 '20 at 22:14
  • When added to the configuration file e.g. ` WEAKEST_FIT ` and run backend, and when the application starts, in console i have error:[link](https://pastebin.com/tMUvZaw5) – dzeju Jan 30 '20 at 19:02
  • Thanks, that was the missing piece of information. I've added it to the question to make it clearer. I'll provide an answer tomorrow. – yurloc Jan 30 '20 at 22:41

1 Answers1

1

Yes it is possible change solver configuration in the OptaWeb Employee Rostering application.

You get the error because you used Weakest Fit, which is a construction heuristic algorithm that requires the domain model to support planning value strength comparison, which is not implemented in this application. Please read the documentation and choose a different construction heuristic algorithm or experiment with local search configuration.

If you want to use Weakest Fit, you can implement strength comparison yourself. Employees are the planning values. What would be a strong value with a great potential to be assigned to a shift and what would be a weak value that is difficult to be assigned to a shift? Maybe we can compare employees based on their skill sets. Employees with just one or two skills are "weaker" - we want to assign them first because later in the construction phase, with less shifts to choose from, it would be more difficult to assign these "weak" employees. Stronger employees with more skills can be assigned later because they are more versatile.

yurloc
  • 2,268
  • 1
  • 15
  • 20