-
Notifications
You must be signed in to change notification settings - Fork 98
Closed
Description
In this branch of DiffOpt: https://github.com/jump-dev/DiffOpt.jl/tree/jg/jumpapi
using DiffOpt
import MathOptInterface as MOI
instantiated_model= MOI.instantiate(DiffOpt.QuadraticProgram.Model)
model = MOI.Bridges.LazyBridgeOptimizer(instantiated_model)
MOI.Bridges.Constraint.add_all_bridges(model, Float64)
MOI.Bridges.Objective.add_all_bridges(model, Float64)then
julia> MOI.supports(model, MOI.ConstraintName(), MOI.ConstraintIndex{MOI.VectorOfVariables, MOI.Zeros})
true
julia> MOI.supports(model.model, MOI.ConstraintName(), MOI.ConstraintIndex{MOI.VectorOfVariables, MOI.Zeros})
falseThis seems to be the issue:
| return is_bridged(b, F, S) || MOI.supports(b.model, attr, Index) |
Metadata
Metadata
Assignees
Labels
No labels