pub struct AgentObjective {
pub agent_id: AgentID,
pub year: u32,
pub objective_type: ObjectiveType,
pub decision_weight: Option<f64>,
pub decision_lexico_order: Option<u32>,
}
Expand description
An objective for an agent with associated parameters
Fields§
§agent_id: AgentID
Unique agent id identifying the agent this objective belongs to
year: u32
The year the objective is relevant for
objective_type: ObjectiveType
Acronym identifying the objective (e.g. LCOX)
decision_weight: Option<f64>
For the weighted sum decision rule, the set of weights to apply to each objective.
decision_lexico_order: Option<u32>
For the lexico decision rule, the order in which to consider objectives.
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