pub struct PbtRunner { /* private fields */ }Expand description
Orchestrates the PBT evolutionary cycle.
Implementations§
Source§impl PbtRunner
impl PbtRunner
Sourcepub fn new(event_bus: Arc<EventBus>) -> Self
pub fn new(event_bus: Arc<EventBus>) -> Self
A runner emitting generation and exploit events on event_bus.
Sourcepub fn run(
&self,
config: &PbtConfig,
executor: &dyn PbtExecutor,
) -> Result<Vec<PopulationMember>>
pub fn run( &self, config: &PbtConfig, executor: &dyn PbtExecutor, ) -> Result<Vec<PopulationMember>>
Run the full PBT evolutionary process.
Returns the final population sorted by fitness (best first).
Auto Trait Implementations§
impl Freeze for PbtRunner
impl !RefUnwindSafe for PbtRunner
impl Send for PbtRunner
impl Sync for PbtRunner
impl Unpin for PbtRunner
impl UnsafeUnpin for PbtRunner
impl !UnwindSafe for PbtRunner
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