Returning multiple solutions to a scheduling issue with optaplanner -


strong texthello optaplanner experts,

i pretty new optaplanner, please pardon naive or basic questions. using schedule a:

set of jobs, a, b , c, can completed 5 resources, will, jane, roy, tom, jeff.  

each of these jobs can done of 5 resources. there algorithm calculate best fit based on soft constraints, not there yet. now, need come multiple solutions, say

1. - a, roy - b , jeff - c 2. roy - b, tom - b , jane - c ... , on 

is there way in optaplanner 6.2.0 final version? see method getting best solution. sure missing something, not sure what. pointers appreciated.

thank time,

alice

there may better solution recommend adding solvereventlistener solver via:

solver.addeventlistener(new solvereventlistener<solution>() {     @override     public void bestsolutionchanged(bestsolutionchangedevent<solution> event) {         // todo auto-generated method stub       } }); 

the bestsolutionchanged method called every time better solution found. here need clone(i think, geoffrey know better) solution , save list(maybe keep last 5 best solutions or something? check how long cloning process takes since method should return rather quickly.


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -