Skip to content

Commit

Permalink
Address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat committed Aug 24, 2019
1 parent 80538b9 commit b282518
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/src/solutions.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ The container type (e.g., scalar, vector, or matrix) of the returned solution

The objective value of a solved problem can be obtained via
[`objective_value`](@ref). The best known bound on the optimal objective
value can be obtained via [`objective_bound`](@ref). If dual values are
available, the value of the dual objective can be obtained via
value can be obtained via [`objective_bound`](@ref). If the solver supports it,
the value of the dual objective can be obtained via
[`dual_objective_value`](@ref).

The following is a recommended workflow for solving a model and querying the
Expand Down
3 changes: 2 additions & 1 deletion src/objective.jl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ objective_value(model::Model)::Float64 = MOI.get(model, MOI.ObjectiveValue())
dual_objective_value(model::Model)
Return the value of the objective of the dual problem after a call to
`optimize!(model)`.
`optimize!(model)`. Throws `MOI.UnsupportedAttribute{MOI.DualObjectiveValue}` if
the solver does not support this attribute.
"""
dual_objective_value(model::Model)::Float64 = MOI.get(model, MOI.DualObjectiveValue())

Expand Down

0 comments on commit b282518

Please sign in to comment.