domain_rules.hpp file
Domain rules that repair a candidate integer commitment.
The MIP-start pipeline has three cleanly separated concerns:
- Rounding — generic, domain-agnostic: round each relaxed integer column to {0,1} by a threshold (
detail::round_with_threshold). Any solver / any problem can do this; it knows nothing about power systems. - Domain repair — THIS file: a pluggable, ordered set of
DomainRules that adjust the rounded commitment using power-system knowledge the rounding cannot (today: minimum on/off run lengths, startup/shutdown logic, storage peak-injection; future: ramp feasibility, must-run/-off, reserve coverage, …). - Solver refinement — per-generator: re-solve a fixed-commitment ED-LP (
relax_fix) or hand the repaired commitment to SCIP (scip_repair).
Adding a new domain rule that produces a better initial integer guess is a LOCAL change: subclass DomainRule, then register it in make_default_domain_rules(). The warmstart generator picks it up automatically — it applies this pipeline between the round stage and the inject stage (the optional scip_repair stage composes on top).
Namespaces
- namespace gtopt
Classes
- class gtopt::CommitmentLogicRule
- struct gtopt::CommitmentRunInfo
- class gtopt::DomainRule
- struct gtopt::DomainRuleContext
- class gtopt::DomainRulePipeline
- An ordered set of
DomainRules applied as a pipeline. - class gtopt::MinUpDownRule
- struct gtopt::PeakInjectionInfo
- class gtopt::PeakInjectionRule
- class gtopt::SeedCommitmentRule