|
1 | 1 | # Extended output |
2 | 2 |
|
3 | | -By default, the `minimise` routine returns its best guess for the global minimiser of the function `f`. However, it is possible to access the extended output by passing the `extended_output = true` option. |
| 3 | +By default, the `minimise` and `sample` routines return their best guess for the global minimiser of the function `f`. However, it is possible to access the extended output by passing the `extended_output = true` option. |
4 | 4 |
|
5 | | -The extended output is a `NamedTuple` which contains: |
6 | | -- `minimiser`, the usual output of the `minimise`; |
| 5 | +When calling `minimise`, the extended output is a `NamedTuple` which contains: |
| 6 | +- `minimiser`, a `Vector{Float64}`, the candidate to the global minimiser of `f`; |
7 | 7 | - `ensemble_minimiser`, a `Vector` of the `M` minimisers computed by each ensemble. `minimiser` is equal to their mean; |
8 | | -- `initial_particles`, the initial position of the particles, see Particle initialisationref; |
9 | | -- `final_particles`, the final position of the particles; |
| 8 | +- `initial_particles`, the initial position of the particles, see [Particle initialisation](@ref); |
| 9 | +- `final_particles`, the final position of the particles. |
| 10 | + |
| 11 | +When calling `sample`, the extended output also includes `sample`, which is an alias for `final_particles`. The final position of the particles is the distribution sample when running with `CBS_mode = :sampling`. |
| 12 | + |
| 13 | +In both cases, certain low-level caches are included as well: |
10 | 14 | - `method`, by default a `ConsensusBasedOptimisation` object; |
11 | 15 | - `method_cache`, by default a `ConsensusBasedOptimisationCache` object; |
12 | 16 | - `particle_dynamic`, by default a `ParticleDynamic` object; |
13 | | -- `particle_dynamic_cache`, by default a `ParticleDynamicCache` object. |
| 17 | +- `particle_dynamic_cache`, by default a `ParticleDynamicCache` object. |
| 18 | +These objects are part of the [Low-level interface](@ref). |
0 commit comments