pub struct AgentObjective {
pub agent_id: String,
pub objective_type: ObjectiveType,
pub decision_weight: Option<f64>,
pub decision_lexico_tolerance: Option<f64>,
}
Expand description
An objective for an agent with associated parameters
Fields§
§agent_id: String
Unique agent id identifying the agent this objective belongs to
objective_type: ObjectiveType
Acronym identifying the objective (e.g. LCOX)
decision_weight: Option<f64>
For the weighted sum objective, the set of weights to apply to each objective.
decision_lexico_tolerance: Option<f64>
The tolerance around the main objective to consider secondary objectives. This is an absolute value of maximum deviation in the units of the main objective.
Trait Implementations§
Source§impl Clone for AgentObjective
impl Clone for AgentObjective
Source§fn clone(&self) -> AgentObjective
fn clone(&self) -> AgentObjective
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AgentObjective
impl Debug for AgentObjective
Source§impl<'de> Deserialize<'de> for AgentObjective
impl<'de> Deserialize<'de> for AgentObjective
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 AgentObjective
impl PartialEq for AgentObjective
impl StructuralPartialEq for AgentObjective
Auto Trait Implementations§
impl Freeze for AgentObjective
impl RefUnwindSafe for AgentObjective
impl Send for AgentObjective
impl Sync for AgentObjective
impl Unpin for AgentObjective
impl UnwindSafe for AgentObjective
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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