1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//! Shuffled Complex Evolution (SCE-UA) method for global optimization.
//!
//! This is a Rust implementation of Duan's (1992) general-purpose global optimization
//! program developed at the Department of Hydrology & Water Resources of the
//! University of Arizona. SCE-UA searches a continuous bounded parameter space
//! by evolving shuffled complexes of points.
//!
//! # Example
//!
//! ```
//! use sceua::{minimize, Config};
//!
//! let result = minimize(
//! |x| x.iter().map(|value| value * value).sum::<f64>(),
//! &[-5.0, -5.0],
//! &[5.0, 5.0],
//! Config::default(),
//! )?;
//!
//! assert_eq!(result.best_x.len(), 2);
//! # Ok::<(), sceua::SceuaError>(())
//! ```
//!
//! Reference: Duan, Q., Sorooshian, S., and Gupta, V.K. (1992),
//! "Effective and efficient global optimization for conceptual rainfall-runoff
//! models", *Water Resources Research*, 28(4), 1015-1031.
pub use Config;
pub use SceuaError;
pub use ;