[][src]Struct jeans::Optimizer

pub struct Optimizer { /* fields omitted */ }

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

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.

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]

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,