RsBundle  Diff

Differences From Artifact [985d1a2c80]:

  • File src/master/base.rs — part of check-in [f91bd4a57c] at 2019-07-21 20:54:33 on branch async — master::base: remove old commented code (user: fifr size: 4445)

To Artifact [3bf8332c81]:

  • File src/master/base.rs — part of check-in [5ee9fe59e5] at 2019-07-22 08:52:58 on branch master-builder — Introduce master problem builder (user: fifr size: 4744) [more...]

109
110
111
112
113
114
115













    /// Return the multiplier associated with a minorant.
    fn multiplier(&self, min: Self::MinorantIndex) -> Real;

    /// Move the center of the master problem to $\alpha \cdot d$.
    fn move_center(&mut self, alpha: Real, d: &DVector);
}



















>
>
>
>
>
>
>
>
>
>
>
>
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127

    /// Return the multiplier associated with a minorant.
    fn multiplier(&self, min: Self::MinorantIndex) -> Real;

    /// Move the center of the master problem to $\alpha \cdot d$.
    fn move_center(&mut self, alpha: Real, d: &DVector);
}

/// A builder for creating a master problem solvers.
pub trait Builder {
    /// The master problem to be build.
    type MasterProblem: MasterProblem;

    /// Type of errors.
    type Err;

    /// Create a new master problem.
    fn build(&mut self) -> Result<Self::MasterProblem, Self::Err>;
}