Skip to content

Balance scalable electricity generation in Factory Scenario #159

Description

@ApocDev

Problem

Factory Scenario treats pyops-electricity as a free boundary. It excludes electricity goal response columns, retains existing generator goals unchanged, and reports the remaining grid demand as an external raw import even when a configured electricity block has scalable generation.

In the active factory, block 35 produces 300 MW: 190 count-pinned fish turbines provide a fixed 228 MW while unpinned steam generation supplies 72 MW. The block solver already supports this mixed fixed/scalable goal, but Scenario discards its electricity response and leaves a 401.4005 MW deficit.

Expected behavior

  • Preserve count-pinned generation as fixed output.
  • Scale unpinned generation in configured electricity blocks to meet remaining grid demand.
  • Include induced electricity demand from scaled fuel/material suppliers and iterate to convergence.
  • Keep an external import only when configured generation cannot cover demand.
  • Keep heat block-local/free unless separately redesigned.

Acceptance criteria

  • Active factory Scenario proposes a higher electricity goal for block 35 and closes the grid deficit within validation tolerance.
  • Existing mixed pinned/unpinned block semantics are preserved.
  • Cyclic power-production dependencies converge or produce a clear validation failure.
  • Focused solver and browser coverage passes, with solver documentation updated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: plannerProduction block / planning modelbugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions