pub struct GlobalView {
pub ran: usize,
pub failed: usize,
pub skipped: usize,
pub best_start: usize,
pub solutions: Vec<SolutionView>,
}Expand description
大域の探索の結果(OptimizeView::global_search)
Fields§
§ran: usize回した始点の数・追跡できずに捨てた数
failed: usize§skipped: usize止めたので始めなかった始点の数(ran・failed のどちらにも数えない)
best_start: usize最良の解の始点の番号(0 は今の値)
solutions: Vec<SolutionView>残した解(評価関数の良い順。x は変数の並び)
Implementations§
Source§impl GlobalView
impl GlobalView
Sourcepub fn from_result(g: &GlobalResult) -> GlobalView
pub fn from_result(g: &GlobalResult) -> GlobalView
大域の探索の結果から
Trait Implementations§
Source§impl Clone for GlobalView
impl Clone for GlobalView
Source§impl Debug for GlobalView
impl Debug for GlobalView
Source§impl Default for GlobalView
impl Default for GlobalView
Source§impl<'de> Deserialize<'de> for GlobalView
impl<'de> Deserialize<'de> for GlobalView
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for GlobalView
impl PartialEq for GlobalView
Source§impl Serialize for GlobalView
impl Serialize for GlobalView
impl StructuralPartialEq for GlobalView
Auto Trait Implementations§
impl Freeze for GlobalView
impl RefUnwindSafe for GlobalView
impl Send for GlobalView
impl Sync for GlobalView
impl Unpin for GlobalView
impl UnsafeUnpin for GlobalView
impl UnwindSafe for GlobalView
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more