Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
odow committed Apr 2, 2024
1 parent 153c3e9 commit 96b470f
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/MOI/MOI_wrapper.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -4855,7 +4859,7 @@ function MOI.add_constraint(
@checked Lib.XPRSnlpaddformulas(

Check warning on line 4859 in src/MOI/MOI_wrapper.jl

View check run for this annotation

Codecov / codecov/patch

src/MOI/MOI_wrapper.jl#L4853-L4859

Added lines #L4853 - L4859 were not covered by tests
model.inner,
1, # ncoefs,
Cint[row - 1], # rowind,
Cint[row-1], # rowind,
Cint[0, length(type)], # formulastart,
parsed,
type,
Expand Down

0 comments on commit 96b470f

Please sign in to comment.