-
Notifications
You must be signed in to change notification settings - Fork 36
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
SOC Flowsheet #100
SOC Flowsheet #100
Conversation
To run CI against a version if
to
where 1234 is the PR number. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All four example files execute with no issues on my local machine, and the diagram looks good. There are a few commented lines that should be uncommented or cleaned up.
self.feed_heater.default_initializer( | ||
solver=solver, solver_options=optarg, output_level=outlvl | ||
).initialize(model=self.feed_heater) | ||
# self.sweep_heater.initialize(outlvl=outlvl, solver=solver, optarg=optarg) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should these be uncommented, or removed?
self.sweep_exchanger.default_initializer( | ||
solver=solver, solver_options=optarg, output_level=outlvl | ||
).initialize(model=self.sweep_exchanger) | ||
# self.sweep_exchanger.initialize(outlvl=outlvl, solver=solver, optarg=optarg) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same question for the three commented lines here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Forgot to remove the old versions when updating them to the new initialization format. Will take care of that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The examples are running for me as well. I have a few minor comments on the jupyter notebook, but can't comment at the specific locations since the file is too big.
- There is an unused import,
# from save_results import save_results
- You should suppress missing scaling factor warnings to keep the output clean. The following code should work.
scaling_log = idaeslog.getLogger("idaes.core.util.scaling")
scaling_log.setLevel(idaeslog.ERROR)
- Near the end of section 2 there is a sentence that is missing a phrase. "Interior point solvers like IPOPT when unconstrained solutions occur too close to variable bounds."
- In section 3 the following text has "an" instead of "and". "Most MVs we want to ramp between the old an new setpoints"
This pull request adds the SOC flowsheet used in recent NMPC and model degradation papers as an example. A Jupyter notebook takes the user through classical control simulations.
Legal Acknowledgement
By contributing to this software project, I agree to the following terms and conditions for my contribution:
📚 Documentation preview 📚: https://idaes-examples--100.org.readthedocs.build/en/100/