Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
odow committed Feb 6, 2024
1 parent aacc484 commit 92f6348
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/src/manual/solutions.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Subject to
y[b] ≤ 1
```

## Check if optimal solution exists
## Check if an optimal solution exists

Use [`has_optimal_solution`](@ref) to check if the solver found an optimal
solution:
Expand All @@ -41,7 +41,7 @@ julia> has_optimal_solution(model)
true
```

By default [`has_optimal_solution`](@ref) returns `true` for both global and
By default, [`has_optimal_solution`](@ref) returns `true` for both global and
local optima. Pass `allow_local = false` to check if the solver found a globally
optimal solution:
```jldoctest solutions
Expand Down Expand Up @@ -322,7 +322,7 @@ Solution is optimal
```

You can also use a more advanced workflow that deals with a broader range of
statues:
statuses:
```jldoctest solutions
julia> function solve_and_print_solution(model)
if termination_status(model) in (OPTIMAL, LOCALLY_SOLVED)
Expand Down

0 comments on commit 92f6348

Please sign in to comment.