macop.checkpoints.BasicCheckpoint

Basic Checkpoint class implementation

Classes

BasicCheckpoint(_algo, _every, _filepath)

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

class macop.checkpoints.BasicCheckpoint.BasicCheckpoint(_algo, _every, _filepath)[source]

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

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