OnViolation

class ioh.iohcpp.logger.trigger.OnViolation(self)

Bases: Trigger

Trigger that evaluates to true when there is a contraint violation. It counts the violations, so loggers used at the same time (e.g. in different threads) each need their own, rather than sharing ON_VIOLATION.

Attributes Summary

violations

(self) -> int

Methods Summary

__call__(self, arg0, arg1, /)

reset(self)

Attributes Documentation

violations

(self) -> int

Methods Documentation

__call__(self, arg0: ioh.iohcpp.LogInfo, arg1: ioh.iohcpp.MetaData, /) → bool
reset(self) → None