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 authored Feb 6, 2024
1 parent fd00a7c commit aacc484
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions docs/src/manual/solutions.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,22 +36,22 @@ Subject to

Use [`has_optimal_solution`](@ref) to check if the solver found an optimal
solution:
```julia solutions
```jldoctest solutions
julia> has_optimal_solution(model)
true
```

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:
```julia solutions
```jldoctest solutions
julia> has_optimal_solution(model; allow_local = false)
true
```

Pass `dual = true` to check if the solver found an optimal dual solution in
addition to an optimal primal solution:
```solutions
```jldoctest solutions
julia> has_optimal_solution(model; dual = true)
true
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,8 @@ optimize!(model)
# Julia has a convention that functions which mutate their arguments should
# end in `!`. A common example is `push!`.

# Now let's see what information we can query about the solution.
# Now let's see what information we can query about the solution,
# starting with [`has_optimal_solution`](@ref):

has_optimal_solution(model)

Expand Down

0 comments on commit aacc484

Please sign in to comment.