OnViolation¶
- class ioh.iohcpp.logger.trigger.OnViolation(self)¶
Bases:
TriggerTrigger 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
(self) -> int
Methods Summary
Attributes Documentation
- violations¶
(self) -> int
Methods Documentation
- __call__(self, arg0: ioh.iohcpp.LogInfo, arg1: ioh.iohcpp.MetaData, /) bool¶
- reset(self) None¶