430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
|
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
|
-
+
-
-
+
+
|
start_time: Instant::now(),
}
}
pub fn new_with_state(
problem: P,
state: SyncSolverState<<M::MasterProblem as MasterProblem<<P as FirstOrderProblem>::Minorant>>::State>,
) -> Self
) -> Result<Self, P, M>
where
M: Default,
{
let mut solver = Self::new(problem);
solver.set_state(state);
solver
solver.set_state(state)?;
Ok(solver)
}
/// Return the underlying threadpool.
///
/// In order to use the same threadpool for concurrent processes,
/// just clone the returned `ThreadPool`.
pub fn threadpool(&self) -> &ThreadPool {
|