70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
+
+
+
+
+
|
pub trait MasterProblem {
/// Unique index for a minorant.
type MinorantIndex: Copy + Eq;
/// Error returned by the subgradient-extension callback.
type SubgradientExtensionErr;
/// Create a new master problem.
fn new() -> Result<Self, Self::SubgradientExtensionErr>
where
Self: Sized;
/// Set the number of subproblems.
fn set_num_subproblems(&mut self, n: usize) -> Result<(), Self::SubgradientExtensionErr>;
/// Set the lower and upper bounds of the variables.
fn set_vars(
&mut self,
|