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

Eliminating Pyomo 6 deprecation warning #232

Merged
merged 1 commit into from
Jun 1, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions egret/common/lazy_ptdf_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -818,16 +818,16 @@ def uc_instance_binary_relaxer(model, solver):
for ivar in _binary_var_generator(model):
ivar.domain = pyo.UnitInterval
if persistent_solver:
for var in ivar.itervalues():
solver.update_var(var)
for k in ivar:
solver.update_var(ivar[k])

def uc_instance_binary_enforcer(model, solver):
persistent_solver = isinstance(solver, PersistentSolver)
for ivar in _binary_var_generator(model):
ivar.domain = pyo.Binary
if persistent_solver:
for var in ivar.itervalues():
solver.update_var(var)
for k in ivar:
solver.update_var(ivar[k])

def _load_pf_slacks(solver, m, t_subset):
## ensure the slack variables are loaded
Expand Down