jMetalPy icon indicating copy to clipboard operation
jMetalPy copied to clipboard

Suggestion of 2 new observers

Open saviosampaio opened this issue 6 years ago • 2 comments

Good Morning!

I would like to suggest two other observers:

"WriteSolutionsToFileObserver"

To record solutions, allowing you to examine solutions evolution over generations.

This "observer" can have the same parameters as "WriteFrontToFileObserver" (output_directory, step, silent).

Another interesting observer can also be used for both tasks: "WriteFrontAndSolutionsToFileObserver", with the same parameters.

Thank you very much.

Greetings.

Savio

saviosampaio avatar Dec 15 '19 11:12 saviosampaio

Thank you for your suggestions! As for the "WriteFrontAndSolutionsToFileObserver", you can attach more than one observer to an algorithm:

algorithm = ...
algorithm.observable.register(WriteFrontToFileObserver())
algorithm.observable.register(WriteSolutionsToFileObserver())

benhid avatar Dec 16 '19 08:12 benhid

Hello guys,

In the same spirit, I am looking for a way to record the temperature evolution while using "SimulatedAnnealing" and fitness value at each iteration of algorithms. "BasicObserver" display the fitness but i can't find a way to keep record of it. This could be useful for parameter selection.

If it does not exist i suggest an observer allowing to select what parameters and function values we want to keep record of. I am new to JMetalPy so excuse me if this kind of feature already exist.

Have a nice day!

AG500 avatar Sep 02 '20 09:09 AG500