Skip to content

Commit

Permalink
Merge pull request #311 from AndrewJSchoen/master
Browse files Browse the repository at this point in the history
Fix lingering issue with WASM support
  • Loading branch information
alphaville authored Jan 11, 2023
2 parents 0c0acae + 00c25a2 commit 3546611
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
4 changes: 2 additions & 2 deletions src/core/panoc/panoc_optimizer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ where
ConstraintType: constraints::Constraint + 'life,
{
fn solve(&mut self, u: &mut [f64]) -> Result<SolverStatus, SolverError> {
let now = time::Instant::now();
let now = instant::Instant::now();

/*
* Initialise [call panoc_engine.init()]
Expand Down Expand Up @@ -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());
Expand Down

0 comments on commit 3546611

Please sign in to comment.