#[non_exhaustive]pub enum SolverAlgorithm {
Cfr,
CfrPlus,
Dcfr,
}Expand description
The regret and average-strategy update rule; independent of the game tree.
The player-update order is chosen separately with UpdateSchedule.
Dcfr, the default, usually converges fastest.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Cfr
Vanilla regret matching and uniformly weighted average strategies.
CfrPlus
Regret matching+ (accumulated regrets clipped at zero) with uniformly weighted average strategies and no averaging delay.
This is not the linearly weighted CFR+ of the original paper, nor the quadratically weighted CFR+ baseline used in the DCFR paper.
Dcfr
Discounted CFR with fixed (alpha, beta, gamma) = (1.5, 0, 2).
Negative accumulated regrets are discounted, not clipped to zero.
Trait Implementations§
Source§impl Clone for SolverAlgorithm
impl Clone for SolverAlgorithm
impl Copy for SolverAlgorithm
Source§impl Debug for SolverAlgorithm
impl Debug for SolverAlgorithm
Source§impl Default for SolverAlgorithm
impl Default for SolverAlgorithm
impl Eq for SolverAlgorithm
Source§impl Hash for SolverAlgorithm
impl Hash for SolverAlgorithm
Source§impl PartialEq for SolverAlgorithm
impl PartialEq for SolverAlgorithm
impl StructuralPartialEq for SolverAlgorithm
Auto Trait Implementations§
impl Freeze for SolverAlgorithm
impl RefUnwindSafe for SolverAlgorithm
impl Send for SolverAlgorithm
impl Sync for SolverAlgorithm
impl Unpin for SolverAlgorithm
impl UnsafeUnpin for SolverAlgorithm
impl UnwindSafe for SolverAlgorithm
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more