gtopt/commitment.hpp file

Unit commitment data for generator on/off scheduling.

Defines the Commitment structure which specifies unit commitment parameters for a generator: startup/shutdown costs, no-load cost, minimum up/down times, and initial conditions. Each Commitment entry links to exactly one Generator via a foreign key.

Commitment constraints are only enforced on stages marked as chronological. On non-chronological stages (e.g. duration-weighted representative blocks) the commitment is silently skipped and the generator dispatches normally.

JSON Example

{
  "uid": 1,
  "name": "thermal1_uc",
  "generator": "thermal1",
  "startup_cost": 5000,
  "shutdown_cost": 1000,
  "noload_cost": 50,
  "min_up_time": 4,
  "min_down_time": 2,
  "initial_status": 1,
  "initial_hours": 8
}

Namespaces

namespace gtopt

Classes

struct gtopt::Commitment
Unit commitment parameters for a generator.