Skip to content

bounds: has no where:, so a mixed fleet merges its fixed and free capacities into a data-prep column #262

Description

@FBumann

Prompt: Maybe we should transfer all of them from lpspec to mathspec and close them in lpspec? Lets go through one by one.

Note

The following content was generated by AI. Moved from fluxopt/lpspec#1220, which holds the evidence — probes, corpus audits and the ports behind it — and is closed against this issue.

What can be improved?

The language half of the upstream issue; the port that exercises the
equal-bounds pin on a real mixed fleet stays there.

declarations.md offers the
equal-bounds pin as the answer to a quantity that is a decision in one model
and data in another: bind lower and upper to the same value where it is
fixed, and one equation serves both.

Within one model it does not reach the ordinary case, because bounds: has
no where:. A fleet where some entities have a fixed capacity and the rest are
free needs a merged column — the fixed value where fixed, the maximum or
inf where free — built in data prep. A fact the model file already states,
"this entity's capacity is given", leaves the file and reappears as a column
nothing declares the meaning of. That is the same tax as pushing a regime mask
into data, one layer down: at the bounds rather than at the constraint.

Everything needed is already declared — the mask is p_nom_set being present,
which the language says elsewhere. This is ergonomics, not new power:
today's answer works and produces the same LP.

Also worth checking here

The pin's fitness for the case the docs advertise it for is unverified — no
model in examples/ uses it for a mixed fleet, and the upstream port mirrors
PyPSA's two-name split instead. So declarations.md's sentence reads as
covering a case nothing exercises.

Related: #261, a different restriction on the same field.

Version

v0.0.0-alpha.42

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: bounds & domainA variable's bounds and the domain vocabularydesign: openIn scope; the spelling is undecided

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions