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
Like JuMP, InfiniteOpt supports the use of `MOI.Parameter`. For instance,
641
+
consider making a finite variable as a parameter:
642
+
```jldoctest restrict_vars
643
+
julia> @variable(model, param in Parameter(42))
644
+
param
645
+
```
646
+
which simply produces a finite parameter (i.e., is equivalent to
647
+
`@finite_parameter(model, param == 42)`). For infinite variables, the use
648
+
of `MOI.Parameter` simply produces a parameter function:
649
+
```jldoctest restrict_vars
650
+
julia> @variable(model, pfunc in Parameter(sin), Infinite(t))
651
+
pfunc(t)
652
+
```
653
+
which is equivalent to `@parameter_function(model, pfunc == sin(t))`. All
654
+
parameters can be updated via [`set_parameter_value`](@ref), see [Finite Parameters](@ref finite_param_docs) and [Parameter Function](@ref par_func_docs) to learn more.
655
+
639
656
## Queries
640
657
`InfiniteOpt` contains a large suite of methods to query information about
641
658
variables. This suite comprises extensions to all current `JuMP` query
0 commit comments