Skip to content

Bound info for parameter functions in disjunct constraints - #143

Open
dnguyen227 wants to merge 1 commit into
infiniteopt:masterfrom
dnguyen227:infgdp_bound_info
Open

Bound info for parameter functions in disjunct constraints#143
dnguyen227 wants to merge 1 commit into
infiniteopt:masterfrom
dnguyen227:infgdp_bound_info

Conversation

@dnguyen227

Copy link
Copy Markdown
Contributor

Right now if a disjunct contains a parameter function, any method that uses variable bounds will error when it comes across it.

ArgumentError: JuMP.has_lower_bound not defined for variable reference type ParameterFunctionRef

So in this PR set_variable_bound_info is given a dispatch for GeneralVariableRef.

@codecov

codecov Bot commented Aug 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.52%. Comparing base (a4ebe8a) to head (17543e5).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #143   +/-   ##
=======================================
  Coverage   99.51%   99.52%           
=======================================
  Files          17       17           
  Lines        2061     2093   +32     
=======================================
+ Hits         2051     2083   +32     
  Misses         10       10           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@dnguyen227

Copy link
Copy Markdown
Contributor Author

@pulsipher ready for review 🙂

@pulsipher

Copy link
Copy Markdown
Collaborator

Is this problem removed by just defining methods like JuMP.lower_bound for parameter functions? If so, perhaps we just need to add this to InfiniteOpt...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants