PR 8/8: Validate paper OCP direct transcription#32
Conversation
|
|
||
| model.Rp = pyo.Expression(model.t, rule=resistance_rule) | ||
|
|
||
| def sublimation_flux_rule(m, t): |
There was a problem hiding this comment.
Nonblocking: Nw is an unconstrained expression, but sublimation_flux() says the Pyomo model enforces nonnegative flux. With the default lower temperature bound, Pw can fall below chamber_water_pressure (about 220.92 K for 3 Pa), so the NLP still admits negative sublimation/deposition states. Either add a constraint such as m.Pw[t] >= config.chamber_water_pressure or a nonnegative flux variable, or narrow the docstring to match the implemented smooth expression.
There was a problem hiding this comment.
Addressed in 6da96cf. Added a Pyomo nonnegative_sublimation_flux constraint, updated the helper docstring/scaling, and added test_problem1_model_constrains_sublimation_flux_nonnegative.
|
|
||
| As a local verification against the cloned upstream repository, the MATLAB | ||
| Policy 1 segment for Problem 1 (`Case2`) was run from | ||
| `/home/bernalde/repos/simDAE-optimalcontrol-lyo`. It detected the |
There was a problem hiding this comment.
Nonblocking: This absolute local path makes the validation note hard for another maintainer to reproduce. Please replace it with the upstream repository URL/commit plus the command or script used, or move the local-only detail to the tracking issue until the reproducible workflow lands.
There was a problem hiding this comment.
Addressed in 6da96cf. Replaced the local path with the upstream repository, commit 5bcfece23128be7e5be51b73693dc6674223ccc6, and the MATLAB script path used for the validation note.
bernalde
left a comment
There was a problem hiding this comment.
Reviewed the Paper OCP benchmark implementation, surrounding Pyomo conventions, docs, package exports, and tests. I found only nonblocking follow-ups; this is merge-ready from my review. GitHub does not allow this account to approve its own PR, so I am submitting this as COMMENT rather than APPROVE.
|
Addressed review comments in commit 6da96cf. Commits pushed:
Main changes made:
Tests run and results:
Comments intentionally not addressed:
Remaining risks or follow-up items:
|
bernalde
left a comment
There was a problem hiding this comment.
Focused follow-up review of 6da96cf found no actionable issues. The nonnegative-flux constraint addresses the model concern, the added regression test covers the constraint shape, the Paper OCP slow solves still pass locally, and the validation doc now points to the upstream repository commit and script path. I cannot approve this PR from the author account, so this is submitted as COMMENT.
Summary
Validation
Closes #26