Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | solver: add `center` and `candidate` methods. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
86f5e96862292cce36481efe05668d10 |
| User & Date: | fifr 2017-02-28 10:56:45.963 |
Context
|
2017-03-03
| ||
| 15:40 | Inhibit some clippy warnings. check-in: a9461b0e93 user: fifr tags: trunk | |
|
2017-02-28
| ||
| 10:56 | solver: add `center` and `candidate` methods. check-in: 86f5e96862 user: fifr tags: trunk | |
| 10:56 | Fix example for new API. check-in: 6e8b13050a user: fifr tags: trunk | |
Changes
Changes to src/solver.rs.
| ︙ | ︙ | |||
672 673 674 675 676 677 678 679 680 681 682 683 684 685 |
if step == Step::Descent { "*" } else { " " },
self.master.weight(),
self.expected_progress,
self.nxt_mod,
self.nxt_val,
self.cur_val);
}
/**
* Initializes the master problem.
*
* The oracle is evaluated once at the initial center and the
* master problem is initialized with the returned subgradient
* information.
| > > > > > > > > > > | 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.
|
| ︙ | ︙ |