[][src]Struct max_tree::AiSettings

pub struct AiSettings {
    pub max_depth: usize,
    pub eps_depth: f64,
    pub analysis: bool,
    pub greed_elim: bool,
    pub max_mib: Option<f64>,
}

AI settings.

Fields

max_depth: usize

Maximum depth.

eps_depth: f64

Utility discount from action depth.

This is usually a small positive number (e.g. 0.000001).

analysis: bool

Whether to run analysis.

greed_elim: bool

Eliminate unexplored actions when using greedy search.

max_mib: Option<f64>

A limit to estimated memory usage, causing the search to terminate.

This limit is only checked occationally, e.g. after breadth search, so actual memory usage before termination will exceed limit.

Implementations

impl AiSettings[src]

pub fn new(max_depth: usize, eps_depth: f64) -> AiSettings[src]

Creates new settings.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.