[go: up one dir, main page]

Menu

[925ebb]: / Examples / mainEFP.cpp  Maximize  Restore  History

Download this file

136 lines (113 with data), 4.0 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
// ===================================
// Main.cpp file generated by OptFrame
// Project EFP
// ===================================
#include <stdlib.h>
#include <math.h>
#include <iostream>
#include "EFP.h"
#include "./EFP/mainForecastingCodes/priceMain.cpp"
#include "./EFP/mainForecastingCodes/loadMain.cpp"
#include "./EFP/mainForecastingCodes/microGrid.cpp"
#include "./EFP/mainForecastingCodes/selfUseMode.cpp"
#include "./EFP/mainForecastingCodes/jamesTaylor.cpp"
#include "./EFP/mainForecastingCodes/rainMain.cpp"
#include "./EFP/mainForecastingCodes/mokoko.cpp"
#include "./EFP/mainForecastingCodes/AETwoVariables.cpp"
#include "./EFP/mainForecastingCodes/smartStorage.cpp"
using namespace std;
using namespace optframe;
using namespace EFP;
//#include <tr1/random>
//using namespace std::tr1;
int main(int argc, char **argv)
{
// variate_generator<mt19937, uniform_real<> > rngU(mt19937(123), uniform_real<>());
// variate_generator<mt19937, normal_distribution<> > rngN(mt19937(123), normal_distribution<>(2, .5));
// variate_generator<mt19937, binomial_distribution<> > rngB(mt19937(123), binomial_distribution<>(3, .7));
// variate_generator<mt19937, poisson_distribution<> > rngP(mt19937(123), poisson_distribution<>(20));
// variate_generator<mt19937, gamma_distribution<> > rngG(mt19937(123), gamma_distribution<>(3));
//
// for (int i = 0; i < 5; ++i)
// std::cout << rngU() << " " << rngN() << " " << rngB() << " " << rngP() << " " << 2 * rngG() << std::endl;
// getchar();
// if (argc != 10)
// {
// cout << "Wrong parameters!" << endl;
// cout << "Expected parameters are: nome nomeValidationSet saida parameters options precision" << endl;
// selfUseMode();
// exit(1);
// }
//
// if (argc != 10)
// {
// cout << "Wrong parameters!" << endl;
// cout << "Expected parameters are: nome nomeValidationSet saida parameters options precision" << endl;
// selfUseMode();
// exit(1);
// }
// ==============================================
//Running know forecasting problems
int type = 0; // price
//type = 1; // load
type = 2; // MG
type = 3; // JAMES TAYLOR 2007 European Dataset
type = 4; // rain forecast
type = 69; // mokoko forecast
type = 2; // colocar o numero desejado
int r;
int trainningMode = 0; //calibration mode active if value is 1
switch (type)
{
case 0: //Eletricity Price Competition Mode
if (trainningMode == 0)
r = priceCompetitionBlind(argc, argv);
else
r = priceCompetitionCalibrationMode(argc, argv);
cout << "Program ended successfully in Eletricity Price Mode" << endl;
return r;
break;
case 1: //Load Competition Mode
if (trainningMode == 0)
r = loadCompetitionBlind(argc, argv);
else
r = loadCompetitionCalibrationMode(argc, argv);
cout << "Program ended successfully in Load Competition Mode" << endl;
return r;
break;
case 2: //Liu Mode Applied Energy, 2014
r = microGridLiuAppliedEnergy(argc, argv);
cout << "Program ended successfully in MG Mode" << endl;
return r;
break;
case 3: //James Taylor 2007
r = jamesTaylorEuropeanDataset(argc, argv);
cout << "Program ended successfully in James Taylor Eurpean Dataset Mode" << endl;
return r;
break;
case 4: //James Taylor 2007
r = rainMain(argc, argv);
cout << "Program ended successfully in James Taylor Eurpean Dataset Mode" << endl;
return r;
break;
case 69: //James Taylor 2007
r = mokoko(argc, argv);
cout << "Program ended successfully in James Taylor Eurpean Dataset Mode" << endl;
return r;
break;
case 100: //James Taylor 2007
r = AETwoVariables(argc, argv);
cout << "Program ended successfully in AE many variables final batch!" << endl;
return r;
break;
case 1112: //James Taylor 2007
r = smartStorage(argc, argv);
cout << "Program ended successfully in Smart Storage" << endl;
return r;
break;
default:
int r = 1;
cout << "Program ended unsuccessfully in DEFAULT Mode! Something went wrong...." << endl;
return r;
}
}