예제 #1
0
파일: ef.py 프로젝트: Pyomo/pyomo
 def _warn_activate_jsonio_solution_saver(val):
     # don't use logger here since users might not import
     # the pyomo logger in a scripting interface
     sys.stderr.write(
         "\tWARNING: The 'activate_jsonio_solution_saver' "
         "config item will be ignored "
         "unless it is being used as a command-line option "
         "where it can be redirected to 'solution_saver_extension'. "
         "Please use 'solution_saver_extension=pyomo.pysp.plugins.jsonio' "
         "instead.\n")
     return _domain_tuple_of_str(val)
예제 #2
0
파일: ef.py 프로젝트: CanLi1/pyomo-1
 def _warn_activate_jsonio_solution_saver(val):
     # don't use logger here since users might not import
     # the pyomo logger in a scripting interface
     sys.stderr.write(
         "\tWARNING: The 'activate_jsonio_solution_saver' "
         "config item will be ignored "
         "unless it is being used as a command-line option "
         "where it can be redirected to 'solution_saver_extension'. "
         "Please use 'solution_saver_extension=pyomo.pysp.plugins.jsonio' "
         "instead.\n")
     return _domain_tuple_of_str(val)