Skip to content

Commit

Permalink
BBO x0
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaibhavdixit02 committed Oct 23, 2023
1 parent a8fe8a0 commit 69df7d1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/examples/rosenbrock.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ flexibility of Optimization.jl. This is a gauntlet of many solvers to get a feel
for common workflows of the package and give copy-pastable starting points.

!!! note

This example uses many different solvers of Optimization.jl. Each solver
subpackage needs to be installed separate. For example, for the details on
the installation and usage of OptimizationOptimJL.jl package, see the
Expand Down Expand Up @@ -155,7 +155,7 @@ sol = solve(prob, Opt(:G_MLSL_LDS, 2), local_method = Opt(:LD_LBFGS, 2), maxiter

```@example rosenbrock
using OptimizationBBO
prob = Optimization.OptimizationProblem(rosenbrock, x0, _p, lb = [-1.0, 0.2],
prob = Optimization.OptimizationProblem(rosenbrock, [0.0, 0.3], _p, lb = [-1.0, 0.2],
ub = [0.8, 0.43])
sol = solve(prob, BBO_adaptive_de_rand_1_bin()) # -1.0 ≤ x[1] ≤ 0.8, 0.2 ≤ x[2] ≤ 0.43
```
Expand Down
2 changes: 2 additions & 0 deletions docs/src/optimization_packages/prima.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ The five Powell's algorithms of the prima library are provided by the PRIMA.jl p
`COBYLA`: (Constrained Optimization BY Linear Approximations) is for general constrained problems with bound constraints, non-linear constraints, linear equality constraints, and linear inequality constraints.

```@example PRIMA
using Optimization, OptimizationPRIMA
rosenbrock(x, p) = (p[1] - x[1])^2 + p[2] * (x[2] - x[1]^2)^2
x0 = zeros(2)
_p = [1.0, 100.0]
Expand Down

0 comments on commit 69df7d1

Please sign in to comment.