ICEACE Model: Closed Economy  1.0.0
Design Documentation of ICEACE Model
 All Data Structures Files Functions Variables Typedefs Macros Pages
centralbank_functions_labour.c
Go to the documentation of this file.
1 #include "../header.h"
2 #include "../centralbank_agent_header.h"
3 
4 /*
5  * \fn: int centralbank_trace_unemployment_status()
6  * \brief:
7  */
9  int unemployed = 0;
10  double total = 0;
11  int id;
14  if (id == 0) {unemployed++;}
15  total++;
17  if (total == 0) {
19  } else {
20  UNEMPLOYMENT_RATE = unemployed / total;
21  }
22  return 0; /* Returning zero means the agent is not removed */
23 }
24