-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
These should accept a result keyword
Lines 3 to 17 in 8eb5802
| function JuMP.value( | |
| t::AbstractTerm{<:JuMP.AbstractJuMPScalar}, | |
| f::Function = JuMP.value, | |
| ) | |
| return JuMP.value(MultivariatePolynomials.coefficient(t), f) * monomial(t) | |
| end | |
| function JuMP.value( | |
| p::AbstractPolynomialLike{<:JuMP.AbstractJuMPScalar}, | |
| f::Function = JuMP.value, | |
| ) | |
| return polynomial( | |
| JuMP.value.(terms(p), f), | |
| MultivariatePolynomials.SortedUniqState(), | |
| ) | |
| end |
like
https://github.com/jump-dev/JuMP.jl/blob/6901e8f98bf24242a141e003e42530fa90f33c3c/src/aff_expr.jl#L493-L495
Metadata
Metadata
Assignees
Labels
No labels