Documentation of UrbanFireXDT
Documentation of UrbanFireXDT
Loading...
Searching...
No Matches
sac_planning.h
Go to the documentation of this file.
1/*
2 *
3 * sac_planning.h
4 *
5 * Planning of the Simulatively Added Components (to the control units)
6 *
7 * This file contains all code required for the planning of which
8 * simulatively added components are added to which control unit.
9 *
10 * */
11
12#ifndef SAC_PLANNING_H
13#define SAC_PLANNING_H
14
15#include <string>
16#include <vector>
17
18#include "units.h"
19
25namespace expansion {
26
27 //
28 // General information about the expansion matrix is defined here
29 //
30 // There are two different ways in which a expansion is defined
31 // 1. as the index it appears in the
32 const int MaskNothing = 0b0000;
33 const int MaskPV = 0b0001;
34 const int MaskBS = 0b0010;
35 const int MaskHP = 0b0100;
36 const int MaskWB = 0b1000;
37
44
45 int expCombiMatrixOrderToBitRepr(int indexMatO);
46 int expCombiBitReprToMatrixOrder(int bitRepr);
47 int genExpCombiAsBitRepr(bool has_pv, bool has_bs, bool has_hp, bool bas_wb);
48 bool isExpCombiPossible(int current_scenario_number, int b);
49 std::string expCombiMatrixOrderToString(int indexMatO);
50
51 bool load_expansion_matrix(float expansion_matrix[16][16]);
52 bool verify_expansion_matrix(float expansion_matrix[16][16]);
53 void add_expansion_to_units(float expansion_matrix_rel_freq[16][16],
54 unsigned long expansion_matrix_abs_freq[16][16]);
55}
56
57
58
59
60#endif
Definition sac_planning.h:25
bool isExpCombiPossible(int current_scenario_number, int b)
Definition sac_planning.cpp:119
std::string expCombiMatrixOrderToString(int indexMatO)
Converts a expansion combination in matrix order to a human-readable string.
Definition sac_planning.cpp:135
const int MaskBS
Definition sac_planning.h:34
const int MaskNothing
Definition sac_planning.h:32
const int MaskPV
Definition sac_planning.h:33
ulong final_count_of_added_evs
Total number of added EVs.
Definition sac_planning.h:43
const int MaskHP
Definition sac_planning.h:35
int genExpCombiAsBitRepr(bool has_pv, bool has_bs, bool has_hp, bool bas_wb)
Definition sac_planning.cpp:103
ulong final_count_of_added_evchsts
Total number of added EV charging stations.
Definition sac_planning.h:42
bool load_expansion_matrix(float expansion_matrix[16][16])
Definition sac_planning.cpp:164
bool verify_expansion_matrix(float expansion_matrix[16][16])
Definition sac_planning.cpp:219
int expCombiMatrixOrderToBitRepr(int indexMatO)
Definition sac_planning.cpp:34
ulong final_count_of_added_hps
Total number of added HPs.
Definition sac_planning.h:41
int expCombiBitReprToMatrixOrder(int bitRepr)
Definition sac_planning.cpp:61
void add_expansion_to_units(float expansion_matrix_rel_freq[16][16], unsigned long expansion_matrix_abs_freq[16][16])
Definition sac_planning.cpp:1095
double final_cumsum_of_added_pv_kWp
The cummulative sum of added roof-top PV power in kWp after the SAC planning.
Definition sac_planning.h:38
const int MaskWB
Definition sac_planning.h:36
double final_cumsum_of_added_bs_kWh
The cummulative sum of added battery capacity in kWh after the SAC planning.
Definition sac_planning.h:39
double final_cumsum_of_added_bs_kW
The cummulative sum of added battery power in kW after the SAC planning.
Definition sac_planning.h:40