• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

FlexMeasures / flexmeasures / 29637951816
82%
main: 82%

Build:
Build:
LAST BUILD BRANCH: feat/chp
DEFAULT BRANCH: main
Ran 18 Jul 2026 09:00AM UTC
Jobs 1
Files 168
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

18 Jul 2026 08:14AM UTC coverage: 81.243% (-0.04%) from 81.278%
29637951816

Pull #2327

github

Flix6x
feat: fixed (no-load / commitment) cost per operation mode

Based on #2278 (operation-mode power bands).

Operation modes constrain a device's power to signed bands but carry no
fixed cost. Real unit-commitment has a no-load / commitment cost incurred
only while a unit is on (e.g. a cogeneration unit's full-speed-no-load
fuel burn). Without it, an LP/MILP that can idle a unit under-represents
the cost of staying on at low output.

Adds an optional per-mode `fixed-cost` (per timestep, in the flex-context
currency), incurred whenever that mode's binary is active:
- schema: OperationModeSchema.fixed-cost, parsed to a currency Quantity;
- objective: sum over (d,b,j) of device_band[d,b,j] * fixed_cost[d,b],
  threaded through device_scheduler as device_band_fixed_costs, mirroring
  the power bands;
- tests: a generator idles when marginal benefit < fixed cost, and the
  objective includes the fixed cost exactly when on (hand-computed);
- docs: changelog + metadata field.

Min-up / min-down time is out of scope (follow-up).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016MLCUiSdXDqDBmg8GbYp1B
Pull Request #2327: feat: fixed (no-load / commitment) cost per operation mode

15 of 26 new or added lines in 3 files covered. (57.69%)

16 existing lines in 2 files now uncovered.

14263 of 17556 relevant lines covered (81.24%)

0.81 hits per line

Uncovered Changes

Lines Coverage ∆ File
9
73.08
-2.94% flexmeasures/data/schemas/scheduling/storage.py
2
90.87
-0.19% flexmeasures/data/models/planning/storage.py

Coverage Regressions

Lines Coverage ∆ File
9
90.87
-0.19% flexmeasures/data/models/planning/storage.py
7
73.08
-2.94% flexmeasures/data/schemas/scheduling/storage.py
Jobs
ID Job ID Ran Files Coverage
1 29637951816.1 18 Jul 2026 09:00AM UTC 168
81.24
GitHub Action Run
Source Files on build 29637951816
  • Tree
  • List 168
  • Changed 4
  • Source Changed 4
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #29637951816
  • Pull Request #2327
  • PR Base - feat/2113-operation-mode-power-bands (#29104332425)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc