Skip to content

Commit ea99c90

Browse files
committed
add domain for logical_constraint_list and disjunction_list
1 parent 6a5b3d8 commit ea99c90

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pyomo/contrib/gdpopt/config_options.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
from pyomo.contrib.gdpopt.discrete_problem_initialize import valid_init_strategies
2323
from pyomo.contrib.gdpopt.nlp_initialization import restore_vars_to_original_values
2424
from pyomo.contrib.gdpopt.util import a_logger, _DoNothing
25+
from pyomo.util.config_domains import ComponentDataSet
26+
from pyomo.core.base import LogicalConstraint
27+
from pyomo.gdp.disjunct import Disjunction
2528

2629
_supported_algorithms = {
2730
'LOA': ('gdpopt.loa', 'Logic-based Outer Approximation'),
@@ -547,6 +550,7 @@ def _add_ldsda_configs(CONFIG):
547550
"logical_constraint_list",
548551
ConfigValue(
549552
default=None,
553+
domain=ComponentDataSet(LogicalConstraint),
550554
description="""
551555
The list of logical constraints to be reformulated into external variables.
552556
The logical constraints should be in the same order of provided starting point.
@@ -557,6 +561,7 @@ def _add_ldsda_configs(CONFIG):
557561
"disjunction_list",
558562
ConfigValue(
559563
default=None,
564+
domain=ComponentDataSet(Disjunction),
560565
description="""
561566
The list of disjunctions to be reformulated into external variables.
562567
The disjunctions should be in the same order of provided starting point.

0 commit comments

Comments
 (0)