B ิย_ใ@s(ddlTddlmZGdd„deƒZdS)้)ฺ*)ฺ 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-d4p3hk07/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__Z implementsrZ IPHExtensionr r r r rrrrrrrrrrrs rN)Zpyomo.common.pluginZ pyomo.pysprZSingletonPluginrrrrrฺ s