优化问题

Struct 优化问题 

Source
pub struct 优化问题<E: 编码器, O: 目标函数, F> {
    pub 数据: 数据,
    pub 目标函数: O,
    pub 编码器: E,
    pub 操作: F,
}

Fields§

§数据: 数据§目标函数: O§编码器: E§操作: F

Implementations§

Source§

impl<E: 编码器, O: 目标函数, F> 优化问题<E, O, F>

Source

pub fn 新建(数据: 数据, 编码器: E, 目标函数: O, 操作: F) -> Self

Source

pub fn 计算( &mut self, 映射: &元素映射, 变化: &Option<Vec<元素>>, ) -> (O::目标值, f64)

Auto Trait Implementations§

§

impl<E, O, F> Freeze for 优化问题<E, O, F>
where O: Freeze, E: Freeze, F: Freeze,

§

impl<E, O, F> RefUnwindSafe for 优化问题<E, O, F>

§

impl<E, O, F> Send for 优化问题<E, O, F>
where O: Send, E: Send, F: Send,

§

impl<E, O, F> Sync for 优化问题<E, O, F>
where O: Sync, E: Sync, F: Sync,

§

impl<E, O, F> Unpin for 优化问题<E, O, F>
where O: Unpin, E: Unpin, F: Unpin,

§

impl<E, O, F> UnwindSafe for 优化问题<E, O, F>
where O: UnwindSafe, E: UnwindSafe, F: UnwindSafe,

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