Skip to content

Commit

Permalink
delete redundant set_up_logger function
Browse files Browse the repository at this point in the history
  • Loading branch information
ZedongPeng committed Nov 30, 2023
1 parent a7a01c2 commit 875269f
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions pyomo/contrib/mindtpy/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -724,25 +724,6 @@ def f(gurobi_model, where):
return f


def set_up_logger(config):
"""Set up the formatter and handler for logger.
Parameters
----------
config : ConfigBlock
The specific configurations for MindtPy.
"""
config.logger.handlers.clear()
config.logger.propagate = False
ch = logging.StreamHandler()
ch.setLevel(config.logging_level)
# create formatter and add it to the handlers
formatter = logging.Formatter('%(message)s')
ch.setFormatter(formatter)
# add the handlers to logger
config.logger.addHandler(ch)


def epigraph_reformulation(exp, slack_var_list, constraint_list, use_mcpp, sense):
"""Epigraph reformulation.
Expand Down

0 comments on commit 875269f

Please sign in to comment.