gtopt::MinUpDownRule class final

Min-up / min-down run-length rule: a greedy forward sweep per unit that suppresses any transition which would end a run shorter than the unit's minimum on/off time, by extending the current run. Makes the rounded commitment respect the run-length rules so a fixed-commitment dispatch LP is feasible and the start passes CHECKFEAS.

Base classes

class DomainRule

Public functions

auto apply(std::span<double> values, const DomainRuleContext& ctx) const -> int override
auto name() const -> std::string_view override noexcept

Function documentation

int gtopt::MinUpDownRule::apply(std::span<double> values, const DomainRuleContext& ctx) const override

Returns the number of column values flipped (0 = the rule found nothing to fix).

Adjust values in place;