Skip to content

Commit

Permalink
Document constraint primal better (#358)
Browse files Browse the repository at this point in the history
  • Loading branch information
odow authored May 15, 2018
1 parent f238c74 commit 258f4f3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/attributes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,12 @@ struct ConstraintDualStart <: AbstractConstraintAttribute end
The assignment to the constraint primal values in result `N`.
If `N` is omitted, it is 1 by default.
Given a constraint `function-in-set`, the `ConstraintPrimal` is the value of the
function evaluated at the primal solution of the variables. For example, given
the constraint `ScalarAffineFunction([x,y], [1, 2], 3)`-in-`Interval(0, 20)` and
a primal solution of `(x,y) = (4,5)`, the `ConstraintPrimal` solution of the
constraint is `1 * 4 + 2 * 5 + 3 = 17`.
"""
struct ConstraintPrimal <: AbstractConstraintAttribute
N::Int
Expand Down

0 comments on commit 258f4f3

Please sign in to comment.