We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b29d41b commit 2be4fe1Copy full SHA for 2be4fe1
test/nlp_problems/nf.jl
@@ -4,7 +4,7 @@ function nf()
4
h(x::Vector{VariableRef}) = sum(x.^4)
5
nlp = Model()
6
@variable(nlp, x[1:2])
7
- @constraint(nlp, f(x) .- g(x) in MOI.Nonnegatives(2))
+ @constraint(nlp, f(x) .- g(x) .>= 0)
8
@objective(nlp, Max, h(x))
9
return nlp
10
end
0 commit comments