Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
odow committed Jul 23, 2024
1 parent 5e02b23 commit 7de5c48
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/src/apireference.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ SDDP.SimulatorSamplingScheme
```@docs
SDDP.AbstractParallelScheme
SDDP.Serial
SDDP.Threaded
SDDP.Asynchronous
```

Expand Down
16 changes: 15 additions & 1 deletion src/plugins/parallel_schemes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,21 @@ end
"""
Threaded()
Run SDDP in threaded mode.
Run SDDP in multi-threaded mode.
Use `julia --threads N` to start Julia with `N` threads. In most cases, you
should pick `N` to be the number of physical cores on your machine.
!!! danger
This plug-in is experimental, and parts of SDDP.jl may not be threadsafe. If
you encounter any problems or crashes, please open a GitHub issue.
## Example
```julia
SDDP.train(model; parallel_scheme = SDDP.Threaded())
SDDP.simulate(model; parallel_scheme = SDDP.Threaded())
```
"""
struct Threaded <: AbstractParallelScheme end

Expand Down

0 comments on commit 7de5c48

Please sign in to comment.