forked from JuliaSmoothOptimizers/OptimizationProblems.jl
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvariational.jl
More file actions
27 lines (26 loc) · 946 Bytes
/
variational.jl
File metadata and controls
27 lines (26 loc) · 946 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
variational_meta = Dict(
:nvar => 100,
:variable_nvar => true,
:ncon => 0,
:variable_ncon => false,
:minimize => true,
:name => "variational",
:has_equalities_only => false,
:has_inequalities_only => false,
:has_bounds => false,
:has_fixed_variables => false,
:objtype => :other,
:contype => :unconstrained,
:best_known_lower_bound => -Inf,
:best_known_upper_bound => Inf,
:is_feasible => true,
:defined_everywhere => missing,
:origin => :academic,
)
get_variational_nvar(; n::Integer = default_nvar, kwargs...) = n
get_variational_ncon(; n::Integer = default_nvar, kwargs...) = 0
get_variational_nlin(; n::Integer = default_nvar, kwargs...) = 0
get_variational_nnln(; n::Integer = default_nvar, kwargs...) = 0
get_variational_nequ(; n::Integer = default_nvar, kwargs...) = 0
get_variational_nineq(; n::Integer = default_nvar, kwargs...) = 0
get_variational_nls_nequ(; n::Integer = default_nvar, kwargs...) = 1