Beale

Struct Beale 

Source
pub struct Beale;
Expand description

Beale Function f(x₁,x₂) = (1.5 - x₁ + x₁x₂)² + (2.25 - x₁ + x₁x₂²)² + (2.625 - x₁ + x₁x₂³)² Global minimum: f(3, 0.5) = 0

Implementations§

Source§

impl Beale

Source

pub fn new() -> Self

Create a new instance of the Beale function

Trait Implementations§

Source§

impl Debug for Beale

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl ObjectiveFunction for Beale

Source§

fn evaluate(&self, x: &Array1<f64>) -> f64

Evaluate the objective function at a given point
Source§

fn dimensions(&self) -> usize

Get the number of dimensions of the problem
Source§

fn bounds(&self) -> (Vec<f64>, Vec<f64>)

Get the bounds of the search space
Source§

impl TestFunction for Beale

Source§

fn global_minimum(&self) -> f64

Get the known global minimum value
Source§

fn global_minimum_position(&self) -> Array1<f64>

Get the known global minimum position
Source§

fn name(&self) -> &'static str

Get the name of the test function
Source§

fn test_3d_surface( &self, n_points: usize, ) -> (Array2<f64>, Array2<f64>, Array2<f64>)

Auto Trait Implementations§

§

impl Freeze for Beale

§

impl RefUnwindSafe for Beale

§

impl Send for Beale

§

impl Sync for Beale

§

impl Unpin for Beale

§

impl UnwindSafe for Beale

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

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

Source§

fn vzip(self) -> V