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

Allow Constraint.Infeasible to be used to disable a Disjunct #2918

Open
sadavis1 opened this issue Jul 20, 2023 · 0 comments · May be fixed by #3546
Open

Allow Constraint.Infeasible to be used to disable a Disjunct #2918

sadavis1 opened this issue Jul 20, 2023 · 0 comments · May be fixed by #3546

Comments

@sadavis1
Copy link
Contributor

Rationale

When generating indexed Disjuncts, it may be that some disjuncts contain constraints that are impossible due to the input data. The natural thing to do in that case is to return Constraint.Infeasible in a rule.

Description

Currently, this throws a ValueError at pyomo/core/base/constraint.py:539 . One alternative for the user is to fix the disjunct's indicator variable to False and deactivate it. It would be nice for Constraint.Infeasible to have the same effect when used on a Disjunct.

Additional information

There is a TODO mentioning that this would be good to have, but I figured I would make an issue anyways.

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

Successfully merging a pull request may close this issue.

2 participants