B Ÿ@`ã@s0ddlmZmZddlmZGdd„deƒZdS)é)ÚSingletonPluginÚ implements)Ú phextensionc@sfeZdZeejƒdd„Zdd„Zdd„Zdd„Z d d „Z d d „Z d d„Z dd„Z dd„Zdd„ZdS)ÚtestphextensioncCsdS)N©)ÚselfÚphrrúF/tmp/pip-unpacked-wheel-bi3529v6/pyomo/pysp/plugins/testphextension.pyÚresetsztestphextension.resetcCsdS)Nr)rrrrr Úpre_ph_initializationsz%testphextension.pre_ph_initializationcCsdS)Nr)rrrrr Úpost_instance_creationsz&testphextension.post_instance_creationcCs tdƒdS)NzCalled after PH initialization!)Úprint)rrrrr Úpost_ph_initializationsz&testphextension.post_ph_initializationcCs tdƒdS)Nz$Called after the iteration 0 solves!)r )rrrrr Úpost_iteration_0_solvessz'testphextension.post_iteration_0_solvescCs tdƒdS)NzQCalled after the iteration 0 solves, averages computation, and weight computation)r )rrrrr Úpost_iteration_0"sz testphextension.post_iteration_0cCsdS)Nr)rrrrr Úpre_iteration_k_solves%sz&testphextension.pre_iteration_k_solvescCs tdƒdS)Nz$Called after the iteration k solves!)r )rrrrr Úpost_iteration_k_solves)sz'testphextension.post_iteration_k_solvescCs tdƒdS)Nz)Called after an iteration k has finished!)r )rrrrr Úpost_iteration_k,sz testphextension.post_iteration_kcCs tdƒdS)NzCalled after PH has terminated!)r )rrrrr Úpost_ph_execution/sz!testphextension.post_ph_executionN)Ú__name__Ú __module__Ú __qualname__rrZ IPHExtensionr r r rrrrrrrrrrr rs rN)Zpyomo.common.pluginrrZ pyomo.pysprrrrrr Ú s