Skip to content

Optimization Events

ropt.events

Optimization event data structures.

EnOptEvent dataclass

Container for data emitted with optimization workflow events.

Events are raised during optimization to signal lifecycle milestones and intermediate outcomes. Registered callbacks receive an EnOptEvent instance with event metadata, the current context, and any associated results.

Attributes:

Name Type Description
event_type EnOptEventType

Type of event that occurred.

context EnOptContext

Optimizer context associated with the event.

results tuple[Results, ...]

Tuple of result objects associated with the event.