Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encountered BurntToast in parameter estimation problem #1275

Open
dallan-keylogic opened this issue Sep 29, 2023 · 0 comments
Open

Encountered BurntToast in parameter estimation problem #1275

dallan-keylogic opened this issue Sep 29, 2023 · 0 comments
Assignees
Labels
Priority:Normal Normal Priority Issue or PR

Comments

@dallan-keylogic
Copy link
Contributor

While setting up a parameter estimation problem, I encountered BurntToast while trying to initialize:

Exception has occurred: BurntToast
Degrees of freedom were not zero [4] after trying to fix state variables. Something broke in the generic property package code - please inform the IDAES developers.
  File "C:\Users\[REDACTED]\Repos\idaes-pse\idaes\models\properties\modular_properties\base\generic_property.py", line 1722, in initialize
    raise BurntToast(
  File "C:\Users\[REDACTED]\Repos\CESAR_1\PZ_fitting\PZ_henry_estimate.py", line 130, in <module>
    m.state_hartono.initialize(hold_state=False)
idaes.core.util.exceptions.BurntToast: Degrees of freedom were not zero [4] after trying to fix state variables. Something broke in the generic property package code - please inform the IDAES developers.

The reason is pretty simple: I (foolishly) unfixed the parameters I wanted to estimate before trying to initialize. The local fix is pretty simple, but the user isn't ever supposed to encounter BurntToast exceptions. Clearly we need to rewrite the exception to account for this possibility.

@ksbeattie ksbeattie added the Priority:Normal Normal Priority Issue or PR label Oct 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority:Normal Normal Priority Issue or PR
Projects
None yet
Development

No branches or pull requests

2 participants