#[non_exhaustive]pub enum Termination {
Converged,
IterationLimit,
Infeasible,
Unbounded,
Failed,
NotReported,
}Expand description
The calculation types used by solver consumers. The full problem
vocabulary lives in powerio_prob; these types sit at the facade root so
a consumer does not need a second PowerIO dependency to name its boundary.
How the producing calculation ended.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Converged
The calculation converged to its stated tolerance.
IterationLimit
The iteration limit ended the calculation before convergence.
Infeasible
The solver proved the constraints admit no solution. The optimization outcome an OPF consumer acts on differently from a numerical failure: the case is overconstrained, and no retry or setting change fixes it.
Unbounded
The solver proved the objective unbounded over the feasible set.
Failed
The calculation failed.
NotReported
The source records a solved calculation without termination information (DeepMind OPFData does).
Trait Implementations§
Source§impl Clone for Termination
impl Clone for Termination
Source§fn clone(&self) -> Termination
fn clone(&self) -> Termination
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for Termination
impl Debug for Termination
Source§impl Default for Termination
impl Default for Termination
Source§fn default() -> Termination
fn default() -> Termination
Source§impl<'de> Deserialize<'de> for Termination
impl<'de> Deserialize<'de> for Termination
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Termination, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Termination, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for Termination
Source§impl JsonSchema for Termination
impl JsonSchema for Termination
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for Termination
impl PartialEq for Termination
Source§fn eq(&self, other: &Termination) -> bool
fn eq(&self, other: &Termination) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for Termination
impl Serialize for Termination
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for Termination
Auto Trait Implementations§
impl Freeze for Termination
impl RefUnwindSafe for Termination
impl Send for Termination
impl Sync for Termination
impl Unpin for Termination
impl UnsafeUnpin for Termination
impl UnwindSafe for Termination
Blanket Implementations§
impl<T> Allocation for T
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
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>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.