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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
//! CLP simplex-algorithm selection and tuning profile.
//!
//! Leaf submodule: owns the [`ClpAlgorithm`] selector and the [`ClpProfile`]
//! value type plus its [`Default`] tuning surface. `solver`, `retry`, and
//! `interface` read these via `super::config::{…}`.
use crateDEFAULT_PROFILE_HEURISTIC_SENTINEL;
/// Simplex algorithm selection for [`ClpProfile`].
///
/// Selects which simplex algorithm `solve` runs: the **dual** simplex
/// (`Clp_dual`) or the **primal** simplex (`Clp_primal`). The dual simplex
/// re-optimizes efficiently after bound changes (a dual-feasible basis stays
/// dual-feasible), while the primal simplex is advantageous when a
/// primal-feasible starting basis is available. Both reach the same optimum;
/// only the iteration path differs. The default is [`ClpAlgorithm::Dual`].
/// CLP-specific solver profile carrying the tunable option surface.
///
/// `ClpProfile` is the associated `Profile` type for [`ClpSolver`](crate::ClpSolver). Other
/// solvers (e.g. `HiGHS`) define their own concrete profile types with their
/// native option names.
///
/// The field defaults are tuned for deterministic, warm-started repeated
/// re-solves: perturbation is off (`102`, not CLP's own `100`=auto default),
/// scaling is off (the cobre prescaler conditions the matrix), and the
/// feasibility tolerances match `HighsProfile` bit-for-bit.