Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
ZedongPeng committed Feb 5, 2024
1 parent 1ac75d2 commit cdde7d6
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions pyomo/contrib/gdpopt/ldsda.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,30 +57,13 @@

it, it_available = attempt_import('itertools')

_linear_degrees = {1, 0}

# Data tuple for each node that also functions as the sort key.
# Therefore, ordering of the arguments below matters.
BBNodeData = namedtuple(
'BBNodeData',
[
'obj_lb', # lower bound on objective value, sign corrected to minimize
'obj_ub', # upper bound on objective value, sign corrected to minimize
'is_screened', # True if the node has been screened; False if not.
'is_evaluated', # True if node has been evaluated; False if not.
'num_unbranched_disjunctions', # number of unbranched disjunctions
'node_count', # cumulative node counter
'unbranched_disjunction_indices', # list of unbranched disjunction indices
],
)

# Data tuple for external variables.
ExternalVarInfo = namedtuple(
'ExternalVarInfo',
[
'exactly_number', # number of external variables for this type
'Boolean_vars', # list with names of the ordered Boolean variables to be reformulated
'Disjuncts', # list of disjuncts that are associated with the external variables
# 'Boolean_vars_ordered_index', # Indexes where the external reformulation is applied
'LogicExpression', # Logic expression that defines the external variables
'UB', # upper bound on external variable
'LB', # lower bound on external variable
Expand Down

0 comments on commit cdde7d6

Please sign in to comment.