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

FlexMeasures / flexmeasures / 29118705379

10 Jul 2026 07:33PM UTC coverage: 81.24% (+0.001%) from 81.239%
29118705379

push

github

Flix6x
Add FLEXMEASURES_LP_SOLVER_OPTIONS to configure solver options

Solver options for the scheduling solver could previously only be set in
code (a hardcoded HiGHS profile in device_scheduler). This adds a
FLEXMEASURES_LP_SOLVER_OPTIONS config dict, merged over that profile so
operators can tune the solver (e.g. {"mip_rel_gap": "1e-4"}) without
patching FlexMeasures.

When the solver is HiGHS, the options are validated against the installed
HiGHS build: an unknown option name, an invalid value, or a feature the
build lacks raises a clear ValueError. This matters because Pyomo's
appsi_highs interface applies options without checking HiGHS' return
status, so a mistake would otherwise be silently ignored (e.g.
solver="hipo" is unavailable in the pip-installed highspy, yet appsi_highs
solves on as if nothing were wrong). Setting threads/parallel logs a
warning about HiGHS' process-global thread scheduler.

Found while investigating SeitaBV/ems#172.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LeqGFrHfGrBHAJyjdAyr3y

14 of 17 new or added lines in 2 files covered. (82.35%)

14230 of 17516 relevant lines covered (81.24%)

0.81 hits per line

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

89.06
/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