[−][src]Struct jeans::Optimizer
This is an optimizer object. It does the actual heavy lifting.
In order to use the optimizer you first need to create a Settings
struct. That can then be
passed to an Optimizer
struct, and the solve
method can be called to actually solve the problem.
let mut set = jeans::Settings::default(); let mut opt = jeans::Optimizer::new(set); opt.solve();
In order to implement and use custom fitness functions, please see Settings::set_fitness_function
Fields
settings: Settings
current_population: Population
best_fitness: f64
best_representation: Vec<f64>
Implementations
impl Optimizer
[src]
pub fn new(settings: Settings) -> Self
[src]
This method enables the creation of a new Optimizer
struct given a Settings
struct
pub fn solve(&mut self)
[src]
This method is called to begin the solving process.
pub fn report(&self)
[src]
This method is called to generate a report of the solving process.
fn iterate(&mut self)
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Optimizer
impl !Send for Optimizer
impl !Sync for Optimizer
impl Unpin for Optimizer
impl !UnwindSafe for Optimizer
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,