@@ -69,7 +69,7 @@ For a more extensive documentation of all the algorithms and options please cons
6969 * ` μ0::Union{Symbol,Number} = :auto `
7070 * ` show_linesearch::Bool = false `
7171
72- The Rosenbrock function can optimized using the ` Optim.IPNewton() ` as follows:
72+ The Rosenbrock function with constraints can optimized using the ` Optim.IPNewton() ` as follows:
7373
7474``` @example Optim1
7575using Optimization, OptimizationOptimJL
@@ -350,10 +350,9 @@ The Rosenbrock function can optimized using the `Optim.KrylovTrustRegion()` as f
350350``` @example Optim5
351351using Optimization, OptimizationOptimJL
352352rosenbrock(x, p) = (1 - x[1])^2 + 100 * (x[2] - x[1]^2)^2
353- cons= (res,x,p) -> res .= [x[1]^2 + x[2]^2]
354353x0 = zeros(2)
355354p = [1.0,100.0]
356- optprob = OptimizationFunction(rosenbrock, Optimization.AutoForwardDiff();cons= cons )
355+ optprob = OptimizationFunction(rosenbrock, Optimization.AutoForwardDiff())
357356prob = Optimization.OptimizationProblem(optprob, x0, p)
358357sol = solve(prob, Optim.KrylovTrustRegion())
359358```
@@ -362,8 +361,8 @@ sol = solve(prob, Optim.KrylovTrustRegion())
362361
363362
364363### Without Constraint Equations
365- The following method in [ ` Optim ` ] ( https://github.com/JuliaNLSolvers/Optim.jl ) is performing global optimization on problems without
366- constraint equations . It works both with and without lower and upper constraints set by ` lb ` and ` ub ` in the ` Optimization.OptimizationProblem ` .
364+ The following method in [ ` Optim ` ] ( https://github.com/JuliaNLSolvers/Optim.jl ) performs global optimization on problems with or without
365+ box constraints . It works both with and without lower and upper bounds set by ` lb ` and ` ub ` in the ` Optimization.OptimizationProblem ` .
367366
368367- [ ` Optim.ParticleSwarm() ` ] ( https://julianlsolvers.github.io/Optim.jl/stable/#algo/particle_swarm/ ) : ** Particle Swarm Optimization**
369368
@@ -386,8 +385,8 @@ sol = solve(prob, Optim.ParticleSwarm(lower=prob.lb, upper= prob.ub, n_particles
386385```
387386
388387### With Constraint Equations
389- The following method in [ ` Optim ` ] ( https://github.com/JuliaNLSolvers/Optim.jl ) is performing global optimization on problems with
390- constraint equations .
388+ The following method in [ ` Optim ` ] ( https://github.com/JuliaNLSolvers/Optim.jl ) performs global optimization on problems with
389+ box constraints .
391390
392391- [ ` Optim.SAMIN() ` ] ( https://julianlsolvers.github.io/Optim.jl/stable/#algo/samin/ ) : ** Simulated Annealing with bounds**
393392
0 commit comments