(function from pyomo.devel.initialization.initialize)
pyomo.devel.initialization.initialize
Attempt to initialize and subsequently solve the model given by nlp. The basic idea is to apply some method to find good initial values for the variables and then try to solve the problem with nlp_solver.
nlp
nlp_solver
nlp (BlockData) – The pyomo model to be initialized.
nlp_solver (Optional[SolverBase]) – A solver interface appropriate for NLPs. Default: ipopt
global_solver (Optional[SolverBase]) – A solver interface appropriate for global solution of NLPs Default: gurobi_direct_minlp
skip_initial_nlp_solve (bool) – If True, the initial attempt at solving the NLP without initialization will be skipped.
res – The results object obtained the last time the nlp_solver was used to try and solve the model.
pyomo.contrib.solver.common.results.Results