Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
joaquimg committed Feb 1, 2025
1 parent 9d97c69 commit 72b50c5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/ConicProgram/ConicProgram.jl
Original file line number Diff line number Diff line change
Expand Up @@ -184,11 +184,15 @@ function _gradient_cache(model::Model)
b = model.model.constraints.constants

if any(isnan, model.y) || length(model.y) < length(b)
error("Some constraints are missing a value for the `ConstraintDualStart` attribute.")
error(

Check warning on line 187 in src/ConicProgram/ConicProgram.jl

View check run for this annotation

Codecov / codecov/patch

src/ConicProgram/ConicProgram.jl#L187

Added line #L187 was not covered by tests
"Some constraints are missing a value for the `ConstraintDualStart` attribute.",
)
end

if any(isnan, model.s) || length(model.s) < length(b)
error("Some constraints are missing a value for the `ConstraintPrimalStart` attribute.")
error(

Check warning on line 193 in src/ConicProgram/ConicProgram.jl

View check run for this annotation

Codecov / codecov/patch

src/ConicProgram/ConicProgram.jl#L193

Added line #L193 was not covered by tests
"Some constraints are missing a value for the `ConstraintPrimalStart` attribute.",
)
end

if MOI.get(model, MOI.ObjectiveSense()) == MOI.FEASIBILITY_SENSE
Expand Down

0 comments on commit 72b50c5

Please sign in to comment.