RsBundle  Diff

Differences From Artifact [38fc85f7d4]:

  • File src/parallel/problem.rs — part of check-in [4abcab25e2] at 2019-07-17 14:14:53 on branch async — parallel: initialize solver (user: fifr size: 4088)

To Artifact [826b5a4c7c]:

  • File src/parallel/problem.rs — part of check-in [b6db39804c] at 2019-07-22 09:48:01 on branch async — parallel: require `Primal` to be sendable (user: fifr size: 4121)

42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/// 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;

    /// The primal information associated with a minorant.
    type Primal: Aggregatable;

    /// Return the number of variables.
    fn num_variables(&self) -> usize;

    /// Return the lower bounds on the variables.
    ///
    /// If no lower bounds a specified, $-\infty$ is assumed.







|


|







42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/// 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: Send + 'static;

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

    /// Return the number of variables.
    fn num_variables(&self) -> usize;

    /// Return the lower bounds on the variables.
    ///
    /// If no lower bounds a specified, $-\infty$ is assumed.