macop.checkpoints.Checkpoint

Abstract Checkpoint class

Classes

Checkpoint(_algo, _every, _filepath)

Local Search used as exploitation optimization algorithm

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

Local Search used as exploitation optimization algorithm

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 at this backup

run()[source]

Check if necessary to do backup based on _every variable