Skip to content

Commit

Permalink
NFX: fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
jsiirola committed Jul 24, 2023
1 parent ff40919 commit fcac472
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pyomo/solvers/plugins/solvers/xpress_direct.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,9 @@ def _get_nlp_results(self, results, soln):
optimal = False # *globally* optimal?
if status == xp.nlp_unstarted:
results.solver.status = SolverStatus.unknown
results.solver.termination_message = "Non-convex model solve was not start"
results.solver.termination_message = (
"Non-convex model solve was not started"
)
results.solver.termination_condition = TerminationCondition.unknown
soln.status = SolutionStatus.unknown
elif status == xp.nlp_locally_optimal:
Expand Down Expand Up @@ -490,7 +492,7 @@ def _get_nlp_results(self, results, soln):
elif status == xp.nlp_infeasible:
results.solver.status = SolverStatus.ok
results.solver.termination_message = (
"Non-conex model was proven to be infeasible"
"Non-convex model was proven to be infeasible"
)
results.solver.termination_condition = TerminationCondition.infeasible
soln.status = SolutionStatus.infeasible
Expand Down

0 comments on commit fcac472

Please sign in to comment.