Skip to content

Commit

Permalink
Merge pull request #1306 from YuliaProkopovych/opt-tools
Browse files Browse the repository at this point in the history
NOT READY(optimization_tools): Fix failing tests
  • Loading branch information
Wandalen authored Apr 29, 2024
2 parents 97ea2e7 + 837018b commit a8a634d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 11 deletions.
19 changes: 9 additions & 10 deletions module/move/optimization_tools/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,15 @@ rand = "0.8.5"
statrs = "0.16.0"
faer = { version = "0.16.0", features = [ "ndarray" ] }
ndarray = "0.15.6"
plotters = { git = "https://github.com/plotters-rs/plotters.git" }
# plotters = { version = "0.3.5", default-features=false, features = [
# "bitmap_encoder",
# "ttf",
# "area_series",
# "point_series",
# "line_series",
# "full_palette",
# "bitmap_backend",
# ] }
plotters = { version = "0.3.5", default-features=false, features = [
"bitmap_encoder",
"ttf",
"area_series",
"point_series",
"line_series",
"full_palette",
"bitmap_backend",
] }
plotters-backend = { version = "0.3.5", optional = true }
piston_window = { version = "0.120.0", optional = true }
exmex = { version = "0.18.0", features = [ "partial" ], optional = true }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@

use std::
{
collections::HashMap, fs::{ File, OpenOptions }, ops::{ Bound, RangeBounds }, sync::{ Arc, Mutex }
collections::HashMap,
fs::{ File, OpenOptions },
ops::{ Bound, RangeBounds },
sync::{ Arc, Mutex },
};
use deterministic_rand::{ Hrng, Seed, Rng };
use iter_tools::Itertools;
Expand Down
2 changes: 2 additions & 0 deletions module/move/optimization_tools/tests/simplex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ fn problem_5_vars()
assert_eq!( solution[ 0 ].point, vec![ 300.0, 400.0, 300.0, 0.0, 0.0 ] )
}

// for issue https://github.com/plotters-rs/plotters/issues/573
#[ cfg( not( all( debug_assertions, target_os = "linux" ) ) ) ]
#[ test ]
fn problem_draw()
{
Expand Down

0 comments on commit a8a634d

Please sign in to comment.