pub struct AiSettings {
pub max_depth: usize,
pub eps_depth: f64,
pub analysis: bool,
pub greed_elim: bool,
pub max_mib: Option<f64>,
}
Expand description
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§
Source§impl AiSettings
impl AiSettings
Sourcepub fn new(max_depth: usize, eps_depth: f64) -> AiSettings
pub fn new(max_depth: usize, eps_depth: f64) -> AiSettings
Creates new settings.
Auto Trait Implementations§
impl Freeze for AiSettings
impl RefUnwindSafe for AiSettings
impl Send for AiSettings
impl Sync for AiSettings
impl Unpin for AiSettings
impl UnwindSafe for AiSettings
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more