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