SystemContext class

Manages optimization state and provides core functionality for LP formulation.

This is the central coordinator that:

  • Tracks active scenarios/stages/blocks
  • Handles cost calculations with time discounting
  • Provides element access and indexing
  • Manages variable labeling and naming
  • Handles constraint bounds and limits

Key Responsibilities:

  • Bridges simulation model and LP formulation
  • Maintains optimization state
  • Provides helper methods for variable/constraint setup
  • Handles time-discounted cost calculations
  • Manages active element filtering

Inherits from:

  • LabelMaker: For variable labeling/naming
  • FlatHelper: For data flattening operations