pub struct Objective { /* private fields */ }Expand description
The complete typed objective of one OPF instance: a sum of terms.
Implementations§
Source§impl Objective
impl Objective
Sourcepub fn network_generator_cost() -> Self
pub fn network_generator_cost() -> Self
The default OPF objective: the network’s generator cost curves.
Sourcepub fn active_power_dispatch_cost() -> Self
pub fn active_power_dispatch_cost() -> Self
The default multiconductor OPF objective: active power dispatch cost.
Sourcepub fn with_term(self, term: ObjectiveTerm) -> Self
pub fn with_term(self, term: ObjectiveTerm) -> Self
Append one term, consuming the objective.
Sourcepub fn terms(&self) -> &[ObjectiveTerm]
pub fn terms(&self) -> &[ObjectiveTerm]
The terms, in the order they were stated.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Objective
impl<'de> Deserialize<'de> for Objective
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 JsonSchema for Objective
impl JsonSchema for Objective
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for Objective
Auto Trait Implementations§
impl Freeze for Objective
impl RefUnwindSafe for Objective
impl Send for Objective
impl Sync for Objective
impl Unpin for Objective
impl UnsafeUnpin for Objective
impl UnwindSafe for Objective
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