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: docs/src/index.md
+15-15Lines changed: 15 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,21 +41,21 @@ packages.
41
41
42
42
## Overview of the Optimizers
43
43
44
-
| Package | Local Gradient-Based | Local Hessian-Based | Local Derivative-Free | Box Constraints | Local Constrained | Global Unconstrained | Global Constrained |
| Package | Local Gradient-Based | Local Hessian-Based | Local Derivative-Free | Box Constraints | Local Constrained | Global Unconstrained | Global Constrained |
Copy file name to clipboardExpand all lines: docs/src/tutorials/intro.md
+6-3Lines changed: 6 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,10 +45,13 @@ sol.original
45
45
```
46
46
47
47
## Defining the objective function
48
+
48
49
Optimization.jl assumes that your objective function takes two arguments `objective(x, p)`
49
-
1. The optimization variables `x`.
50
-
2. Other parameters `p`, such as hyper parameters of the cost function.
51
-
If you have no “other parameters”, you can safely disregard this argument. If your objective function is defined by someone else, you can create an anonymous function that just discards the extra parameters like this
50
+
51
+
1. The optimization variables `x`.
52
+
2. Other parameters `p`, such as hyper parameters of the cost function.
53
+
If you have no “other parameters”, you can safely disregard this argument. If your objective function is defined by someone else, you can create an anonymous function that just discards the extra parameters like this
54
+
52
55
```julia
53
56
obj = (x, p) ->objective(x) # Pass this function into OptimizationFunction
0 commit comments