-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProblem-Types.h
More file actions
43 lines (38 loc) · 1.13 KB
/
Problem-Types.h
File metadata and controls
43 lines (38 loc) · 1.13 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
/*==============================================================================
Project: LiFe - New Linear Programming Solvers
Theme: Simplex
Module: Problem-Types.h (BSF Types)
Prefix: PT
Author: Leonid B. Sokolinsky
This source code has been produced with using BSF-skeleton
==============================================================================*/
#pragma once
#include "Problem-Include.h" // Problem "Include" Files
#include "Problem-Parameters.h" // Problem Parameters
//=========================== Problem Types =========================
typedef double PT_matrix_T[PP_MM][PP_N];
typedef double PT_vector_T[PP_N];
typedef int PT_vector_i_T[PP_N];
typedef double PT_column_T[PP_MM];
typedef int PT_intColumn_T[PP_MM];
typedef bool PT_bitscale_T[PP_MM];
typedef char PT_MPS_name_T[PP_MPS_NAME_LENGTH];
struct PT_MPS_row_T {
PT_MPS_name_T name;
char type;
double RHS_value;
};
struct PT_MPS_column_T {
PT_MPS_name_T varName;
PT_MPS_name_T rowName;
double value;
int j;
};
struct PT_MPS_upBound_T {
int varIndex;
double value;
};
struct PT_MPS_fxVariable_T {
int varIndex;
double value;
};