From 96b470f7f1df1d37bf62e135242183e3104cd81f Mon Sep 17 00:00:00 2001 From: odow Date: Wed, 3 Apr 2024 12:59:32 +1300 Subject: [PATCH] Fix formatting --- src/MOI/MOI_wrapper.jl | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/MOI/MOI_wrapper.jl b/src/MOI/MOI_wrapper.jl index 662b1b68..371fc24c 100644 --- a/src/MOI/MOI_wrapper.jl +++ b/src/MOI/MOI_wrapper.jl @@ -3050,10 +3050,14 @@ const _NLPSTATUS = Dict( ("1 Solution found ( XSLP_NLPSTATUS_SOLUTION)", MOI.LOCALLY_SOLVED), Lib.XPRS_NLPSTATUS_OPTIMAL => ("2 Globally optimal ( XSLP_NLPSTATUS_OPTIMAL)", MOI.OPTIMAL), - Lib.XPRS_NLPSTATUS_NOSOLUTION => - ("3 No solution found ( XSLP_NLPSTATUS_NOSOLUTION)", MOI.OTHER_ERROR), - Lib.XPRS_NLPSTATUS_INFEASIBLE => - ("4 Proven infeasible ( XSLP_NLPSTATUS_INFEASIBLE)", MOI.INFEASIBLE), + Lib.XPRS_NLPSTATUS_NOSOLUTION => ( + "3 No solution found ( XSLP_NLPSTATUS_NOSOLUTION)", + MOI.OTHER_ERROR, + ), + Lib.XPRS_NLPSTATUS_INFEASIBLE => ( + "4 Proven infeasible ( XSLP_NLPSTATUS_INFEASIBLE)", + MOI.INFEASIBLE, + ), Lib.XPRS_NLPSTATUS_UNBOUNDED => ( "5 Locally unbounded ( XSLP_NLPSTATUS_UNBOUNDED)", MOI.DUAL_INFEASIBLE, @@ -4855,7 +4859,7 @@ function MOI.add_constraint( @checked Lib.XPRSnlpaddformulas( model.inner, 1, # ncoefs, - Cint[row - 1], # rowind, + Cint[row-1], # rowind, Cint[0, length(type)], # formulastart, parsed, type,