RsBundle  Diff

Differences From Artifact [6c293f03e8]:

  • File src/solver.rs — part of check-in [d7ed56f9b3] at 2017-02-22 16:32:29 on branch trunk — Remove `DVector` from external API. The use of `[Real]` or `Vec<Real>` is sufficient in most cases. (user: fifr size: 33005)

To Artifact [f8fd08c306]:

  • File src/solver.rs — part of check-in [86f5e96862] at 2017-02-28 10:56:45 on branch trunk — solver: add `center` and `candidate` methods. (user: fifr size: 33227)

672
673
674
675
676
677
678










679
680
681
682
683
684
685
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695







+
+
+
+
+
+
+
+
+
+







              if step == Step::Descent { "*" } else { " " },
              self.master.weight(),
              self.expected_progress,
              self.nxt_mod,
              self.nxt_val,
              self.cur_val);
    }

    /// Return the current center of stability.
    pub fn center(&self) -> &[Real] {
        &self.cur_y
    }

    /// Return the last candidate point.
    pub fn candidate(&self) -> &[Real] {
        &self.nxt_y
    }

    /**
     * Initializes the master problem.
     *
     * The oracle is evaluated once at the initial center and the
     * master problem is initialized with the returned subgradient
     * information.