pub struct Car { /* private fields */ }Implementations§
Source§impl Car
impl Car
pub fn new() -> Self
pub fn new_from_parameters(p: &Vec<f64>) -> Self
pub fn objective(&self, weights: [f64; 11]) -> f64
pub fn objectives(&self) -> [f64; 11]
pub fn check_bounds(&self) -> Vec<f64>
pub fn check_nonlinear_constraints(&self) -> Vec<f64>
pub fn check_linear_constraints(&self) -> Vec<f64>
pub fn center_of_gravity(&self) -> f64
pub fn drag_force(&self) -> f64
pub fn downward_force(&self) -> f64
pub fn acceleration(&self) -> f64
pub fn crash_force(&self) -> f64
pub fn impact_attenuator_volume(&self) -> f64
pub fn corner_velocity(&self) -> f64
pub fn brakeing_distance(&self) -> f64
pub fn suspension_acceleration(&self) -> f64
pub fn pitch_moment(&self) -> f64
pub fn mass(&self) -> f64
Trait Implementations§
Source§impl ArgminOp for Car
impl ArgminOp for Car
Source§fn apply(&self, param: &Self::Param) -> Result<Self::Output, Error>
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>
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>
fn hessian(&self, _param: &Self::Param) -> Result<Self::Hessian, Error>
Computes the Hessian at the given parameters
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> 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