Skip to content

Commit

Permalink
optimal-pbil: add Eq and Ord to Pbil
Browse files Browse the repository at this point in the history
  • Loading branch information
justinlovinger committed Feb 2, 2024
1 parent 1195cdc commit ab7f825
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions optimal-pbil/src/high_level.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use rand::prelude::*;
use crate::{low_level::*, types::*};

/// PBIL independent of problem.
#[derive(Clone, Debug, PartialEq, PartialOrd, Builder)]
#[derive(Clone, Debug, PartialEq, PartialOrd, Eq, Ord, Builder)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub struct Pbil {
/// See [`NumSamples`].
Expand Down Expand Up @@ -52,7 +52,7 @@ impl PbilBuilder {
}

/// Options for stopping a PBIL optimization-loop.
#[derive(Clone, Debug, PartialEq, PartialOrd)]
#[derive(Clone, Debug, PartialEq, PartialOrd, Eq, Ord)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
#[non_exhaustive]
pub enum PbilStoppingCriteria {
Expand Down

0 comments on commit ab7f825

Please sign in to comment.