Skip to content

Commit 6359db4

Browse files
joaquimgandrewrosemberg
authored andcommitted
fix parameters support
1 parent efc9945 commit 6359db4

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/NonLinearProgram/NonLinearProgram.jl

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,14 +114,20 @@ function MOI.supports_constraint(
114114
S<:Union{
115115
MOI.GreaterThan{Float64},
116116
MOI.LessThan{Float64},
117-
# MOI.Interval{Float64},
118117
MOI.EqualTo{Float64},
119-
MOI.Parameter{Float64},
120118
},
121119
}
122120
return true
123121
end
124122

123+
function MOI.supports_constraint(
124+
::Form,
125+
::Type{MOI.VariableIndex},
126+
::Type{MOI.Parameter{Float64}},
127+
)
128+
return true
129+
end
130+
125131
function _add_leq_geq(
126132
form::Form,
127133
idx::MOI.ConstraintIndex,

0 commit comments

Comments
 (0)