Skip to content

Fix line constraint bug in HiOp MDS module.#32

Merged
nkoukpaizan merged 2 commits into
olcf-hackathon-2026-devfrom
slaven/hiop-lineconstraints-fix
Apr 14, 2026
Merged

Fix line constraint bug in HiOp MDS module.#32
nkoukpaizan merged 2 commits into
olcf-hackathon-2026-devfrom
slaven/hiop-lineconstraints-fix

Conversation

@pelesh
Copy link
Copy Markdown
Collaborator

@pelesh pelesh commented Apr 14, 2026

Merge request type

  • New feature
  • Resolves bug
  • Documentation
  • Other

Relates to

  • OPFLOW
  • SOPFLOW
  • SCOPFLOW
  • TCOPFLOW
  • CMake build system
  • Spack configuration
  • Manual
  • Web docs
  • Other

This MR updates

  • Header files
  • Source code
  • CMake build system
  • Spack configuration
  • Web docs
  • Manual
  • Other

Summary

Line thermal constraints are strictly positive so the lower bound on line constraints in the optimization model should not be set, i.e. it is negative infinity. This fix was made to power balance polar and sparse models but not to mixed dense-sparse (MDS) models. This PR addresses this.

This PR also updates answer keys for the related tests.

@pelesh pelesh requested a review from nkoukpaizan April 14, 2026 00:18
@pelesh pelesh self-assigned this Apr 14, 2026
@pelesh pelesh added bug Something isn't working opflow Related to ACOPF computations labels Apr 14, 2026
Copy link
Copy Markdown
Collaborator

@nkoukpaizan nkoukpaizan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, and works for HiOp MDS (PBPOLHIOP and PBPOLRAJAHIOP).

There is a bug that prevents testing the Ipopt case (setting isTestOpflowModelPBPOL = true in test_acopf.cpp, line 68), when the inequality constraint Jacobian is not present (case118). That can be fixed in a subsequent PR.

@nkoukpaizan nkoukpaizan merged commit d9fd5d2 into olcf-hackathon-2026-dev Apr 14, 2026
nkoukpaizan pushed a commit that referenced this pull request May 28, 2026
* Fix line constraint bug in HiOp MDS module.
---------

Co-authored-by: pelesh <pelesh@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working opflow Related to ACOPF computations

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants