Skip to content

Commit

Permalink
Don't add a differentiation algorithm to the PRIMA example
Browse files Browse the repository at this point in the history
Fixes #719
  • Loading branch information
ChrisRackauckas authored Mar 21, 2024
1 parent 8568743 commit fdc7626
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/optimization_packages/prima.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ sol = Optimization.solve(prob, LINCOA(), maxiters = 1000)
function con2_c(res, x, p)
res .= [x[1] + x[2], x[2] * sin(x[1]) - x[1]]
end
optprob = OptimizationFunction(rosenbrock, AutoForwardDiff(), cons = con2_c)
optprob = OptimizationFunction(rosenbrock, cons = con2_c)
prob = OptimizationProblem(optprob, x0, _p, lcons = [1, -100], ucons = [1, 100])
sol = Optimization.solve(prob, COBYLA(), maxiters = 1000)
```

0 comments on commit fdc7626

Please sign in to comment.