From c16e2bcc88cb16c17fda42eb612b35f69ced088b Mon Sep 17 00:00:00 2001 From: Andrew Schoen Date: Fri, 6 Jan 2023 15:25:52 -0600 Subject: [PATCH 1/2] Update panoc_optimizer.rs Fixes lingering issue with #248 --- src/core/panoc/panoc_optimizer.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/panoc/panoc_optimizer.rs b/src/core/panoc/panoc_optimizer.rs index 2928280f..ae2c019c 100644 --- a/src/core/panoc/panoc_optimizer.rs +++ b/src/core/panoc/panoc_optimizer.rs @@ -123,7 +123,7 @@ where ConstraintType: constraints::Constraint + 'life, { fn solve(&mut self, u: &mut [f64]) -> Result { - let now = time::Instant::now(); + let now = instant::Instant::now(); /* * Initialise [call panoc_engine.init()] @@ -218,7 +218,7 @@ mod tests { let mut panoc_cache = PANOCCache::new(n_dimension, tolerance, lbfgs_memory); let problem = Problem::new(&bounds, cost_gradient, cost_function); let mut panoc = PANOCOptimizer::new(problem, &mut panoc_cache).with_max_iter(max_iters); - let now = std::time::Instant::now(); + let now = instant::Instant::now(); let status = panoc.solve(&mut u_solution).unwrap(); println!("{} iterations", status.iterations()); From 00c25a2a1c0377820ceadf77c839a1960da6edbe Mon Sep 17 00:00:00 2001 From: Andrew Schoen Date: Fri, 6 Jan 2023 15:27:32 -0600 Subject: [PATCH 2/2] Update Cargo.toml Bumped version --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 46cca78d..77f18b03 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -42,7 +42,7 @@ homepage = "https://alphaville.github.io/optimization-engine/" repository = "https://github.com/alphaville/optimization-engine" # Version of this crate (SemVer) -version = "0.7.6" +version = "0.7.7" edition = "2018"