-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdata.h
More file actions
38 lines (30 loc) · 756 Bytes
/
data.h
File metadata and controls
38 lines (30 loc) · 756 Bytes
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
#pragma once
#include <iostream>
#include <string>
#include <vector>
#include <set>
using namespace std;
class Data {
friend class gomori;
friend class simplex;
public:
void readUserData(std::istream& in);
void getCoefficients(string, vector<float>& );
void convertation();
protected:
bool isMaximization;
bool isMixed = false;
float max = 0, maxCoef = 0;
vector <float> MFT;
set <int> notIntegers;
vector <int> base;
//coefficients of main function
vector<float> coefficients;
//free members in restrictions
vector<float> freeMembers;
//matrix of coefficients of restrictions
vector<vector<float>> system;
//sign for each restriction ["=" -> 0, "<=" -> 1, ">=" -> -1]
vector<int> signOfRestrictions;
bool unresolved = false;
};