macop.callbacks.classicals

Classical Checkpoints classes implementations

Classes

BasicCheckpoint(every, filepath)

BasicCheckpoint is used for loading previous computations and start again after loading checkpoint

class macop.callbacks.classicals.BasicCheckpoint(every, filepath)[source]

BasicCheckpoint is used for loading previous computations and start again after loading checkpoint

algo

{Algorithm} – main algorithm instance reference

every

{int} – checkpoint frequency used (based on number of evaluations)

filepath

{str} – file path where checkpoints will be saved

load()[source]

Load last backup line of solution and set algorithm state (best solution and evaluations) at this backup

run()[source]

Check if necessary to do backup based on every variable