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

FlexMeasures / flexmeasures / 29585728637

17 Jul 2026 01:53PM UTC coverage: 81.584% (+0.02%) from 81.56%
29585728637

Pull #2325

github

Flix6x
Attach soft SoC commitments to their stock, not to a device index

Enabler for scoping #2194's SoC-constraint relaxation per stock:

- StockCommitment gains a 'stock' attribute holding the stock key; the
  StorageScheduler stamps it on all soft SoC commitments (soc-minima,
  soc-maxima, prefer-full).
- The solver couples stock-scoped commitments to the stock group as a whole
  (via the group's first device, whose stock is the group's stock), regardless
  of which device index the commitment names.
- DeviceInventory.stock_constraint_device(stock_key) exposes the device that
  applies a stock's SoC constraints, complementing stock_groups for
  deserialization-time scoping logic.
- The solver's grouped-device efficiency guard now tolerates a missing
  efficiency column (the default, lossless case), which direct callers of
  device_scheduler commonly omit.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Pull Request #2325: Share storage-efficiency per stock group and index solver stock by group

60 of 62 new or added lines in 4 files covered. (96.77%)

37 existing lines in 1 file now uncovered.

14730 of 18055 relevant lines covered (81.58%)

0.82 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

89.47
/flexmeasures/data/models/planning/linear_optimization.py


Source Not Available

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