Skip to content
Permalink
Browse files

Address comments

  • Loading branch information...
blegat committed Aug 24, 2019
1 parent 80538b9 commit b282518d180454089d309011b3acee2ecfad49f9
Showing with 4 additions and 3 deletions.
  1. +2 −2 docs/src/solutions.md
  2. +2 −1 src/objective.jl
@@ -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
@@ -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())

0 comments on commit b282518

Please sign in to comment.
You can’t perform that action at this time.