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;
25 std::vector<int> _mind_delete;
26 std::vector<int> _mstart_delete;
27
28 std::vector<double> _rhs;
29 std::vector<char> _coltypes;
30 std::vector<char> _rowtypes;
31 std::vector<double> _lb;
32 std::vector<double> _ub;
33 double _optval;
34 std::vector<double> _primals;
35 std::vector<double> _duals;
36 std::vector<double> _slacks;
37 std::vector<double> _reduced_costs;
38
39 std::vector<std::string> _status;
40 std::vector<int> _status_int;
41
42 std::vector<std::string> _col_names;
43 std::vector<std::string> _row_names;
44};
45
46enum INSTANCES {
47 MIP_TOY,
48 LP_TOY,
49 MULTIKP,
50 UNBD_PRB,
51 INFEAS_PRB,
52 NET_MASTER,
53 NET_SP1,
54 NET_SP2,
55 SLACKS,
56 REDUCED
57};
58
59typedef std::vector<InstanceData> AllDatas;
60
61void fill_datas(AllDatas& datas);
Definition define_datas.hpp:11