Function read_agent_objectives
Source pub fn read_agent_objectives(
model_dir: &Path,
agents: &AgentMap,
milestone_years: &[u32],
) -> Result<HashMap<AgentID, AgentObjectiveMap>>
Expand description
Read agent objective info from the agent_objectives.csv
file.
§Arguments
model_dir
- Folder containing model configuration files
agents
- Map of agents
milestone_years
- Milestone years for the simulation
§Returns
A map of Agents, with the agent ID as the key