Skip to content

Commit 436c691

Browse files
authored
Update usage.md - Added Advance Usage to Usage Section
1 parent 30b9533 commit 436c691

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

docs/src/usage.md

+13-1
Original file line numberDiff line numberDiff line change
@@ -79,4 +79,16 @@ println("Optimal value found at: ", result)
7979
- `a`: A vector with the lower bounds to be used in the search space.
8080
- `b`: An upper-bound vector for the search space.
8181
- `max_iterations`: Maximum number of iterations to run the optimization. The default is 100.
82-
- `min_radius`: The minimum allowable size of a hyper-rectangle (default: '1e-5').
82+
- `min_radius`: The minimum allowable size of a hyper-rectangle (default: '1e-5').
83+
84+
## Advanced Usage
85+
### Fine-Tuning Optimization:
86+
The `optimize` function offers several parameters for fine-tuning the optimization process:
87+
88+
- `max_iterations`: Sets the maximum number of iterations to perform. Increasing this value may improve the accuracy of the result but will require more computational time.
89+
- `min_radius`: Specifies the minimum allowable size of the hyper-rectangles. This can be adjusted to control the granularity of the search.
90+
Example with custom parameters:
91+
92+
```julia
93+
result = DividedRectangles.optimize(f, a, b, max_iterations=500, min_radius=1e-6)
94+
```

0 commit comments

Comments
 (0)