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
Copy file name to clipboardExpand all lines: src/problems/optimization_problems.jl
+9-4Lines changed: 9 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,8 @@ OptimizationProblem{iip}(f, u0, p = SciMLBase.NullParameters(),;
31
31
lcons = nothing,
32
32
ucons = nothing,
33
33
sense = nothing,
34
+
num_dimensions = nothing,
35
+
fitness_scheme = nothing,
34
36
kwargs...)
35
37
```
36
38
@@ -77,7 +79,8 @@ Any extra keyword arguments are captured to be sent to the optimizers.
77
79
Defaults to `nothing`, implying no upper bounds for the constraints (i.e. the constraint bound is `Inf`)
78
80
* `sense`: the objective sense, can take `MaxSense` or `MinSense` from Optimization.jl.
79
81
* `kwargs`: the keyword arguments passed on to the solvers.
80
-
82
+
* `num_dimensions`: For BBO optimization.
83
+
* `fitness_scheme`: For BBO optimization.
81
84
## Inequality and Equality Constraints
82
85
83
86
Both inequality and equality constraints are defined by the `f.cons` function in the [`OptimizationFunction`](https://docs.sciml.ai/Optimization/stable/API/optimization_function/#optfunction)
@@ -95,7 +98,7 @@ Note that these vectors must be sized to match the number of constraints, with o
95
98
As described above the second argument of the objective definition can take a full batch or a [`DataLoader`](https://juliaml.github.io/MLUtils.jl/stable/api/#MLUtils.DataLoader) object for mini-batching which is useful for stochastic optimization solvers. Thus the data either as an Array or a `DataLoader` object should be passed as the third argument of the `OptimizationProblem` constructor.
96
99
For an example of how to use this data handling, see the `Sophia` example in the [Optimization.jl documentation](https://docs.sciml.ai/Optimization/dev/optimization_packages/optimization) or the [mini-batching tutorial](https://docs.sciml.ai/Optimization/dev/tutorials/minibatch/).
0 commit comments