Skip to content

Commit

Permalink
Fix nlp-mi/006-010
Browse files Browse the repository at this point in the history
  • Loading branch information
odow committed Dec 3, 2023
1 parent af2232f commit e426827
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
8 changes: 2 additions & 6 deletions src/nlp-mi-expr/006_010.jl
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,6 @@ function nlp_mi_expr_006_010(
optimize!(model)

check_status(model, FEASIBLE_PROBLEM, termination_target, primal_target)
check_objective(model, 1.8813786425753092, tol = objective_tol)
return check_solution(
[x, y],
[0.7546057578960682, 1.1267728846792409],
tol = primal_tol,
)
check_objective(model, 1 + log(2), tol = objective_tol)
return check_solution([x, y], [log(2), 1.0], tol = primal_tol)

Check warning on line 44 in src/nlp-mi-expr/006_010.jl

View check run for this annotation

Codecov / codecov/patch

src/nlp-mi-expr/006_010.jl#L43-L44

Added lines #L43 - L44 were not covered by tests
end
8 changes: 2 additions & 6 deletions src/nlp-mi/006_010.jl
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,6 @@ function nlp_mi_006_010(
optimize!(model)

check_status(model, FEASIBLE_PROBLEM, termination_target, primal_target)
check_objective(model, 1.8813786425753092, tol = objective_tol)
return check_solution(
[x, y],
[0.7546057578960682, 1.1267728846792409],
tol = primal_tol,
)
check_objective(model, 1 + log(2), tol = objective_tol)
return check_solution([x, y], [log(2), 1.0], tol = primal_tol)

Check warning on line 56 in src/nlp-mi/006_010.jl

View check run for this annotation

Codecov / codecov/patch

src/nlp-mi/006_010.jl#L55-L56

Added lines #L55 - L56 were not covered by tests
end

0 comments on commit e426827

Please sign in to comment.