Car

Struct Car 

Source
pub struct Car { /* private fields */ }

Implementations§

Source§

impl Car

Source

pub fn new() -> Self

Source

pub fn new_from_parameters(p: &Vec<f64>) -> Self

Source

pub fn objective(&self, weights: [f64; 11]) -> f64

Source

pub fn objectives(&self) -> [f64; 11]

Source

pub fn check_bounds(&self) -> Vec<f64>

Source

pub fn check_nonlinear_constraints(&self) -> Vec<f64>

Source

pub fn check_linear_constraints(&self) -> Vec<f64>

Source

pub fn center_of_gravity(&self) -> f64

Source

pub fn drag_force(&self) -> f64

Source

pub fn downward_force(&self) -> f64

Source

pub fn acceleration(&self) -> f64

Source

pub fn crash_force(&self) -> f64

Source

pub fn impact_attenuator_volume(&self) -> f64

Source

pub fn corner_velocity(&self) -> f64

Source

pub fn brakeing_distance(&self) -> f64

Source

pub fn suspension_acceleration(&self) -> f64

Source

pub fn pitch_moment(&self) -> f64

Source

pub fn mass(&self) -> f64

Trait Implementations§

Source§

impl ArgminOp for Car

Source§

type Param = Vec<f64>

Type of the parameter vector
Source§

type Output = f64

Output of the operator
Source§

type Hessian = ()

Type of Hessian
Source§

type Jacobian = ()

Type of Jacobian
Source§

type Float = f64

Precision of floats
Source§

fn apply(&self, param: &Self::Param) -> Result<Self::Output, Error>

Applies the operator/cost function to parameters
Source§

fn gradient(&self, _param: &Self::Param) -> Result<Self::Param, Error>

Computes the gradient at the given parameters
Source§

fn hessian(&self, _param: &Self::Param) -> Result<Self::Hessian, Error>

Computes the Hessian at the given parameters
Source§

fn jacobian(&self, _param: &Self::Param) -> Result<Self::Jacobian, Error>

Computes the Hessian at the given parameters
Source§

fn modify( &self, _param: &Self::Param, _extent: Self::Float, ) -> Result<Self::Param, Error>

Modifies a parameter vector. Comes with a variable that indicates the “degree” of the modification.
Source§

impl Default for Car

Source§

fn default() -> Car

Returns the “default value” for a type. Read more
Source§

impl Display for Car

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for Car

§

impl RefUnwindSafe for Car

§

impl Send for Car

§

impl Sync for Car

§

impl Unpin for Car

§

impl UnwindSafe for Car

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> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
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

Source§

impl<T> SendSyncUnwindSafe for T
where T: Send + Sync + UnwindSafe + ?Sized,