You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
julia>using JuMP, Alpine, Juniper
julia> model =Model(Alpine.Optimizer);
julia>set_attribute(model, "minlp_solver", optimizer_with_attributes(Juniper.Optimizer))
julia>@variable(model, x, Bin)
x
julia>@NLconstraint(model, x^2<=1.0)
x ^2.0-1.0≤0
julia>optimize!(model)
ERROR: type Symbol has no field head
Stacktrace:
[1] getproperty
@ ./Base.jl:37 [inlined]
[2] traverse_expr_linear_to_affine(expr::Symbol, lhscoeffs::Vector{…}, lhsvars::Vector{…}, rhs::Float64, bufferVal::Nothing, bufferVar::Nothing, sign::Float64, coef::Float64, level::Int64)
#223 rises from the grave.
I don't remember if we support user-defined functions, but we should at least throw a nicer error message:
The text was updated successfully, but these errors were encountered: