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
We would like to use InfiniteOpt as interface for https://github.com/dionysos-dev/Dionysos.jl. For this, we would need to use || constraints but we get into an error with InfiniteOpt:
using InfiniteOpt
model =InfiniteModel()
@infinite_parameter(model, t ∈ [0, 1])
@variable(model, x, Infinite(t))
@constraint(model, (x(0) <=1.0||x(0) >=0.0) :=true)
give the error:
ERROR:`_all_function_variables` not defined for expression of type GenericNonlinearExpr{GeneralVariableRef}.
Stacktrace:
[1] error(s::String)
@ Base ./error.jl:35
[2] _all_function_variables(f::GenericNonlinearExpr{GeneralVariableRef})
@ InfiniteOpt ~/.julia/packages/InfiniteOpt/2oc8E/src/expressions.jl:609
[3] add_constraint(model::InfiniteModel, c::ScalarConstraint{…}, name::String; is_info_constr::Bool)
@ InfiniteOpt ~/.julia/packages/InfiniteOpt/2oc8E/src/constraints.jl:292
[4] add_constraint(model::InfiniteModel, c::ScalarConstraint{…}, name::String)
@ InfiniteOpt ~/.julia/packages/InfiniteOpt/2oc8E/src/constraints.jl:285
[5] macro expansion
@ ~/.julia/packages/JuMP/V9nZm/src/macros/@constraint.jl:173 [inlined]
[6] macro expansion
@ ~/.julia/packages/JuMP/V9nZm/src/macros.jl:393 [inlined]
[7] top-level scope
@ ~/.julia/dev/Dionysos/dionysos-main/examples/planning_path_infiniteopt.jl:68
Some type information was truncated. Use `show(err)` to see complete types.
The text was updated successfully, but these errors were encountered:
We would like to use InfiniteOpt as interface for https://github.com/dionysos-dev/Dionysos.jl. For this, we would need to use
||
constraints but we get into an error with InfiniteOpt:give the error:
The text was updated successfully, but these errors were encountered: