Antares Xpansion
Investment simulations for Antares studies
Loading...
Searching...
No Matches
define_datas.hpp
1#pragma once
2
3#include <algorithm>
4#include <string>
5#include <vector>
6#include <filesystem>
7
8#include "antares-xpansion/multisolver_interface/SolverAbstract.h"
9
10/* Contains all the data to check the results of the tests on an instance*/
12 public:
13 std::filesystem::path _path;
14 int _ncols;
15 int _nintegervars;
16 int _nrows;
17 int _nelems;
18 std::vector<double> _obj;
19
20 std::vector<double> _matval;
21 std::vector<int> _mind;
22 std::vector<int> _mstart;
23
24 std::vector<double> _matval_delete_row;
25 std::vector<double> _matval_delete_col;
26 std::vector<int> _mind_delete_row;
27 std::vector<int> _mind_delete_col;
28 std::vector<int> _mstart_delete_row;
29 std::vector<int> _mstart_delete_col;
30
31 std::vector<double> _rhs;
32 std::vector<char> _coltypes;
33 std::vector<char> _rowtypes;
34 std::vector<double> _lb;
35 std::vector<double> _ub;
36 double _optval;
37 std::vector<double> _primals;
38 std::vector<double> _duals;
39 std::vector<double> _slacks;
40 std::vector<double> _reduced_costs;
41
42 std::vector<std::string> _status;
43 std::vector<int> _status_int;
44
45 std::vector<std::string> _col_names;
46 std::vector<std::string> _row_names;
47};
48
49enum INSTANCES {
50 MIP_TOY,
51 LP_TOY,
52 MULTIKP,
53 UNBD_PRB,
54 INFEAS_PRB,
55 NET_MASTER,
56 NET_SP1,
57 NET_SP2,
58 SLACKS,
59 REDUCED,
60 EQUALITY
61};
62
63typedef std::vector<InstanceData> AllDatas;
64
65void fill_datas(AllDatas& datas);
Definition define_datas.hpp:11