Skip to content

REPOSTED: error 12728: Field 'tap_nom' is not between (or at) tap_min and tap_max for 1 transformer #45

Answered by mgovers
nitbharambe asked this question in Q&A
Discussion options

You must be logged in to vote

Answer Copy-pasted from OP:

Hi @willemijnbrus , thank you for your question.

While I cannot know for sure without seeing the actual data, I think you are running into the following edge case:

If you look at the input data for Transformers ( https://power-grid-model.readthedocs.io/en/stable/user_manual/components.html#transformer ), then you can see that:

  • tap_nom is optional and defaults to 0 if you do not provide it.
  • tap_nom has a valid value if and only if (tap_min <= tap_nom <= tap_max) or (tap_min >= tap_nom >= tap_max)
  • If not, you will receive the error message you ran into.
  • It seems you are running into the edge case that 0 is not in the range [tap_min, tap_max], i.e.:

tap_min > 0

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@willemijnbrus
Comment options

@mgovers
Comment options

@willemijnbrus
Comment options

Answer selected by mgovers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants