B u `Ñã@s8ddgZddlmZGdd„deƒZGdd„deƒZdS)Ú IPHExtensionÚIPHSolverServerExtensioné)Ú Interfacec@s|eZdZdd„Zdd„Zdd„Zdd„Zd d „Zd d „Zd d„Z dd„Z dd„Z dd„Z dd„Z dd„Zdd„Zdd„ZdS)rcCsdS)zCInvoked to reset the state of a plugin to that of post-constructionN©)ÚselfÚphrrú:/tmp/pip-unpacked-wheel-n62dbgi3/pyomo/pysp/phextension.pyÚresetszIPHExtension.resetcCsdS)zCalled before PH initializationNr)rrrrrÚpre_ph_initializationsz"IPHExtension.pre_ph_initializationcCsdS)z,Called after the instances have been createdNr)rrrrrÚpost_instance_creationsz#IPHExtension.post_instance_creationcCsdS)zCalled after PH initializationNr)rrrrrÚpost_ph_initialization sz#IPHExtension.post_ph_initializationcCsdS)z#Called after the iteration 0 solvesNr)rrrrrÚpost_iteration_0_solves(sz$IPHExtension.post_iteration_0_solvescCsdS)zQCalled after the iteration 0 solves, averages computation, and weight computationNr)rrrrrÚpost_iteration_0,szIPHExtension.post_iteration_0cCsdS)z$Called before each iteration k solveNr)rrrrrÚpre_iteration_k_solves0sz#IPHExtension.pre_iteration_k_solvescCsdS)z#Called after the iteration k solvesNr)rrrrrÚpost_iteration_k_solves4sz$IPHExtension.post_iteration_k_solvescCsdS)z(Called after the iteration k is finishedNr)rrrrrÚpost_iteration_k8szIPHExtension.post_iteration_kcCsdS)z5Called before the asynchronous solve loop is executedNr)rrrrrÚpre_asynchronous_solvesBsz$IPHExtension.pre_asynchronous_solvescCsdS)z0Called before the scenario solve has been queuedNr)rrZ scenario_namerrrÚasynchronous_pre_scenario_queueGsz,IPHExtension.asynchronous_pre_scenario_queuecCsdS)zeCalled after a batch of asynchronous sub-problems are solved and corresponding statistics are updatedNr)rrZsubproblem_solve_countsrrrÚpost_asynchronous_var_w_updateKsz+IPHExtension.post_asynchronous_var_w_updatecCsdS)z4Called after the asynchronous solve loop is executedNr)rrrrrÚpost_asynchronous_solvesOsz%IPHExtension.post_asynchronous_solvescCsdS)zCalled after PH has terminatedNr)rrrrrÚpost_ph_executionVszIPHExtension.post_ph_executionN)Ú__name__Ú __module__Ú __qualname__r r r r r rrrrrrrrrrrrrrs c@sDeZdZdd„Zdd„Zdd„Zdd„Zd d „Zd d „Zd d„Z dS)rcCsdS)z Called before PH initialization.Nr)rrrrrr ]sz.IPHSolverServerExtension.pre_ph_initializationcCsdS)z-Called after the instances have been created.Nr)rrrrrr asz/IPHSolverServerExtension.post_instance_creationcCsdS)zCalled after PH initializationNr)rrrrrr esz/IPHSolverServerExtension.post_ph_initializationcCsdS)z*Called before the iteration 0 solve beginsNr)rrrrrÚpre_iteration_0_solveisz.IPHSolverServerExtension.pre_iteration_0_solvecCsdS)z.Called after the iteration 0 solve is finishedNr)rrrrrÚpost_iteration_0_solvemsz/IPHSolverServerExtension.post_iteration_0_solvecCsdS)z*Called before the iteration k solve beginsNr)rrrrrÚpre_iteration_k_solveqsz.IPHSolverServerExtension.pre_iteration_k_solvecCsdS)z.Called after the iteration k solve is finishedNr)rrrrrÚpost_iteration_k_solveusz/IPHSolverServerExtension.post_iteration_k_solveN) rrrr r r rrrrrrrrr[sN)Ú__all__Zpyomo.common.pluginrrrrrrrÚ s I