Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | solver: Handle error when setting the number of suproblems in the master. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
a475dc4e2d2673d7f0ab9e46e8f65bd9 |
| User & Date: | fifr 2016-09-29 06:37:20.203 |
Context
|
2016-09-29
| ||
| 06:37 | solver: Initialize subgradient with first master evaluation. check-in: 9d2ba83f87 user: fifr tags: trunk | |
| 06:37 | solver: Handle error when setting the number of suproblems in the master. check-in: a475dc4e2d user: fifr tags: trunk | |
| 06:36 | Add `DVector::norm2`. check-in: be198094ee user: fifr tags: trunk | |
Changes
Changes to src/solver.rs.
| ︙ | ︙ | |||
527 528 529 530 531 532 533 |
if let Some(ref x) = lb {
if x.len() != self.problem.num_variables() {
return Err(Error::Dimension("Dimension of lower bounds does not match number of variables"));
}
}
| | | 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 |
if let Some(ref x) = lb {
if x.len() != self.problem.num_variables() {
return Err(Error::Dimension("Dimension of lower bounds does not match number of variables"));
}
}
try!(self.master.set_num_subproblems(m));
self.master.set_vars(self.problem.num_variables(), lb, ub);
self.master.set_max_updates(self.params.max_updates);
self.minorants = vec![vec![]; m];
self.cur_val = 0.0;
for i in 0..m {
|
| ︙ | ︙ |