Skip to content

Commit

Permalink
add serialize to metric
Browse files Browse the repository at this point in the history
  • Loading branch information
Yirmandias committed Dec 12, 2023
1 parent 2a216f6 commit 17aa9fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions planning/planners/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ aries_planning = { path = "../planning" }
env_param = { path = "../../env_param" }
tracing = { workspace = true }
tracing-subscriber = { workspace = true }
serde = { version = "1.0.193", features = ["derive"] }

[features]
# reserved for very expensive checks
Expand Down
3 changes: 2 additions & 1 deletion planning/planners/src/solver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ use aries_planning::chronicles::printer::Printer;
use aries_planning::chronicles::Problem;
use aries_planning::chronicles::*;
use env_param::EnvParam;
use serde::{Deserialize, Serialize};
use std::str::FromStr;
use std::sync::Arc;
use std::time::Instant;
Expand All @@ -35,7 +36,7 @@ pub static PRINT_MODEL: EnvParam<bool> = EnvParam::new("ARIES_PRINT_MODEL", "fal

pub type SolverResult<Sol> = aries::solver::parallel::SolverResult<Sol>;

#[derive(Copy, Clone, Debug)]
#[derive(Copy, Clone, Debug, Serialize, Deserialize)]
pub enum Metric {
Makespan,
/// Number of actions in the plan
Expand Down

0 comments on commit 17aa9fe

Please sign in to comment.