RsBundle  Diff

Differences From Artifact [5304a169c4]:

  • File src/problem.rs — part of check-in [4e9c09fe9b] at 2020-06-14 19:05:31 on branch error — masterprocess: use `thiserror` (user: fifr size: 6517) [more...]

To Artifact [7f4dc13bf1]:

  • File src/problem.rs — part of check-in [b9d8a08c0c] at 2020-06-15 19:27:04 on branch async — Merge trunk (user: fifr size: 6436) [more...]

87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
    ///
    /// Return the aggregated primal information for the given subproblem.
    fn aggregated_primal(&self, i: usize) -> &P;
}

/// Trait for implementing a first-order problem description.
///
/// All computations made by an implementation are supposed to
/// be asynchronous. Hence, the interface is slightly different
/// compared with [`crate::FirstOrderProblem`].
pub trait FirstOrderProblem {
    /// Error raised by this oracle.
    type Err: std::error::Error + Send + 'static;

    /// The primal information associated with a minorant.
    type Primal: Aggregatable + Send + 'static;








|
|
<







87
88
89
90
91
92
93
94
95

96
97
98
99
100
101
102
    ///
    /// Return the aggregated primal information for the given subproblem.
    fn aggregated_primal(&self, i: usize) -> &P;
}

/// Trait for implementing a first-order problem description.
///
/// Note that all computations made by an implementation are supposed to be
/// asynchronous.

pub trait FirstOrderProblem {
    /// Error raised by this oracle.
    type Err: std::error::Error + Send + 'static;

    /// The primal information associated with a minorant.
    type Primal: Aggregatable + Send + 'static;