Skip to content

Events

ropt.events

The optimization event class.

EnOptEvent dataclass

Stores data related to an optimization event.

During the execution of an optimization workflow, events are triggered to signal specific occurrences. Callbacks can be registered to react to these events and will receive an EnOptEvent object containing relevant information.

Attributes:

Name Type Description
event_type EnOptEventType

The type of event that occurred.

context EnOptContext

The optimizer context associated with the event.

results tuple[Results, ...]

A tuple containing results.