Skip to content

Commit

Permalink
change dir() to locals()
Browse files Browse the repository at this point in the history
  • Loading branch information
ZedongPeng committed Nov 28, 2023
1 parent 655692a commit 4ac390e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyomo/contrib/mindtpy/algorithm_base_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -1684,7 +1684,7 @@ def solve_main(self):
'No integer solution is found, so the CPLEX solver will report an error status. '
)
# Value error will be raised if the MIP problem is unbounded and appsi solver is used when loading solutions. Although the problem is unbounded, a valid result is provided and we do not return None to let the algorithm continue.
if 'main_mip_results' in dir():
if 'main_mip_results' in locals():
return self.mip, main_mip_results
else:
return None, None
Expand Down

0 comments on commit 4ac390e

Please sign in to comment.