# macop.callbacks.BasicCheckpoint — macop v1.0.1 documentation

# macop.callbacks.BasicCheckpoint

Basic Checkpoint class implementation

Classes

`BasicCheckpoint`(every, filepath) | BasicCheckpoint is used for loading previous computations and start again after loading checkpoint

class `macop.callbacks.BasicCheckpoint.``BasicCheckpoint`(every, filepath)

  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`()

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

  `run`()

    Check if necessary to do backup based on every variable