-
Notifications
You must be signed in to change notification settings - Fork 298
/
Ranking.h
35 lines (30 loc) · 1.1 KB
/
Ranking.h
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
#pragma once
//#include "../../System/Interfaces/IDAESystem.h"
class Ranking
{
public:
Ranking(shared_ptr<IMixedSystem> system,IReduceDAESettings* settings);
~Ranking(void);
virtual label_list_type DoRanking(ublas::matrix<double>& R,ublas::matrix<double>& dR,ublas::matrix<double>& Re,vector<double>& time_values);
label_list_type residuenRanking(ublas::matrix<double>& R,ublas::matrix<double>& dR,ublas::matrix<double>& Re,vector<double>& time_values);
label_list_type perfectRanking(ublas::matrix<double>& Ro,shared_ptr<IMixedSystem> _system,IReduceDAESettings* _settings,SimSettings simsettings,
string modelKey,vector<string> output_names, double timeout,ISimController* sim_controller);
private:
//methods:
IReduceDAESettings* _settings;
shared_ptr<IMixedSystem> _system;
double *_zeroVal;
double *_zeroValOld;
};
/*
Helper class to select the index of the label tuple and return it
*/
class Li
{
public:
typedef std::tuple_element<0,label_type>::type result_type;
result_type operator()(const label_type& u) const
{
return get<0>(u);
}
};