CYCLUS
Loading...
Searching...
No Matches
region_cost.cycpp.h File Reference

Go to the source code of this file.

Functions

std::unordered_map< std::string, double > GenerateParamList () const
 

Variables

double corporate_income_tax_rate
 
std::vector< int > cycpp_shape_corporate_income_tax_rate = {0}
 

Function Documentation

◆ GenerateParamList()

std::unordered_map< std::string, double > GenerateParamList ( ) const

Definition at line 30 of file region_cost.cycpp.h.

Variable Documentation

◆ corporate_income_tax_rate

double corporate_income_tax_rate

This includes the required header to add regional costs to archetypes.

One should only need to:

  • '#include "toolkit/region_cost.cycpp.h"' in the header of the archetype class (as private)
  • Add InitEconParameters() to EnterNotify() in the cc file of the archetype class. How to add parameters to this file:
  1. Add the pragma. A default value MUST be added to ensure backwards compatibility.
  2. Edit the unordered_map called "econ_params" i. add the desired parameter to the array {"name", value} ii. the value of the pair should be the variable name exactly
  3. Add "std::vector<int> cycpp_shape_<param_name> = {0};" to the end of the file with the other ones, reaplcing <param_name> with the name you put in the econ_params array (again, must match exactly).

Definition at line 26 of file region_cost.cycpp.h.

◆ cycpp_shape_corporate_income_tax_rate

std::vector<int> cycpp_shape_corporate_income_tax_rate = {0}

Definition at line 39 of file region_cost.cycpp.h.