struct AgentRaw {
id: Rc<str>,
description: String,
commodity_id: String,
commodity_portion: f64,
search_space: Option<String>,
decision_rule: DecisionRule,
capex_limit: Option<f64>,
annual_cost_limit: Option<f64>,
}
Expand description
An agent in the simulation
Fields§
§id: Rc<str>
A unique identifier for the agent.
description: String
A text description of the agent.
commodity_id: String
The commodity that the agent produces (could be a service demand too).
commodity_portion: f64
The proportion of the commodity production that the agent is responsible for.
search_space: Option<String>
The processes that the agent will consider investing in. Expressed as process IDs separated
by semicolons or None
, meaning all processes.
decision_rule: DecisionRule
The decision rule that the agent uses to decide investment.
capex_limit: Option<f64>
The maximum capital cost the agent will pay.
annual_cost_limit: Option<f64>
The maximum annual operating cost (fuel plus var_opex etc) that the agent will pay.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AgentRaw
impl<'de> Deserialize<'de> for AgentRaw
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
impl StructuralPartialEq for AgentRaw
Auto Trait Implementations§
impl Freeze for AgentRaw
impl RefUnwindSafe for AgentRaw
impl !Send for AgentRaw
impl !Sync for AgentRaw
impl Unpin for AgentRaw
impl UnwindSafe for AgentRaw
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