Skip to content

Commit

Permalink
removing status collection for sub-blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
bknueven committed Mar 13, 2024
1 parent b06ddea commit 11655f0
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions pyomo/contrib/solver/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,12 +419,8 @@ def _map_results(self, model, results):
]
legacy_soln.status = legacy_solution_status_map[results.solution_status]
legacy_results.solver.termination_message = str(results.termination_condition)
legacy_results.problem.number_of_constraints = model.nconstraints()
legacy_results.problem.number_of_variables = model.nvariables()
number_of_objectives = model.nobjectives()
legacy_results.problem.number_of_objectives = number_of_objectives
if number_of_objectives == 1:
obj = get_objective(model)
obj = get_objective(model)
if obj is not None:
legacy_results.problem.sense = obj.sense

if obj.sense == minimize:
Expand Down

0 comments on commit 11655f0

Please sign in to comment.