I'm trying to set up an OptaPlanner benchmark run. Loading the problemBenchmarks from a file is proving to be problematic, as a lot of my classes are not serializable. It will take a LOT of work to get that to function.
Is there a way to run a benchmark using the same unsolved solution that I use when I start my normal planner run, which is already constructed by my existing Java code? It would be trivial to start the benchmark if that would work somehow.
I find a partial solution in OptaPlanner benchmarking without XML inputSolutionFile.
I was able to make that work, by coding an implementation of SolutionFileIO and using a static variable to pass along the unsolved solution that has already been created.
This works in a limited capacity.
Is there any way to set the unsolved solution directly on the PlannerBenchmarkFactory or the PlannerBenchmark, so that I don't have to use a static variable?