Function read_agent_cost_limits

Source
pub fn read_agent_cost_limits(
    model_dir: &Path,
    agent_ids: &HashSet<AgentID>,
    milestone_years: &[u32],
) -> Result<HashMap<AgentID, AgentCostLimitsMap>>
Expand description

Read agent cost limits info from the agent_cost_limits.csv file.

§Arguments

  • model_dir - Folder containing model configuration files

§Returns

A map of Agents, with the agent ID as the key