-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProblem-Parameters.h
More file actions
85 lines (70 loc) · 2.73 KB
/
Problem-Parameters.h
File metadata and controls
85 lines (70 loc) · 2.73 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
/*==============================================================================
Project: LiFe - New Linear Programming Solvers
Theme: Simplex
Module: Problem-Parameters.h (Problem Parameters)
Prefix: PP
Author: Leonid B. Sokolinsky
This source code has been produced with using BSF-skeleton
================================================================================*/
/*----------------------------- Problems ---------------------------------------*/
//#define PP_PATH "Problems/"
/**
#include "_Problems05-1.h"
#define PP_PATH "../../Set-of-LP-Problems/Rnd-LP/"
/**
#include "_Problems10-1.h"
#define PP_PATH "../../Set-of-LP-Problems/Rnd-LP/"
/**
#include "_Problems100_1000-0.h"
#define PP_PATH "../../Set-of-LP-Problems/Rnd-LP/"
/**
#include "_Problems-Klee-Minty-Cube.h"
#define PP_PATH "../../Set-of-LP-Problems/Klee-Minty-Cube/"
/**
#include "_Problems-Miscellaneous.h"
#define PP_PATH "../../Set-of-LP-Problems/Miscellaneous-LP/"
/**/
#include "_Problems-NetLib-LP.h"
#define PP_PATH "../../Set-of-LP-Problems/NetLib-LP/"
/*------------------------------------------------------------------------------*/
#define PP_METHOD_NAME "Simplex MPI"
//-------------------------- Compilation Modes ---------------------------------
#define PP_NORMALIZATION
#define PP_ITER_OUTPUT
//#define PP_MATRIX_OUTPUT
//#define PP_SAVE_BASIS
//#define PP_SAVE_ITER_RESULT
//#define PP_SAVE_RESULT
//#define PP_BASIS_GAUGE
#ifndef PP_EPS_INVERSE
#define PP_EPS_INVERSE PP_EPS_ZERO
#endif
#ifndef PP_EPS_ON_HYPERPLANE
#define PP_EPS_ON_HYPERPLANE PP_EPS_ZERO
#endif
#ifndef PP_EPS_RELATIVE_ERROR
#define PP_EPS_RELATIVE_ERROR PP_EPS_ZERO
#endif
//================================ Problem Paramrters ==========================
#define PP_MM (PP_M+2*PP_N) // Maximal number of constraints
//-------------------------- Input/Outpoot Parameters --------------------------
#define PP_OUTPUT_LIMIT 30 // Number of Elements to output
#define PP_SETW 16
//------------------------- Matrix format --------------------------------------
#define PP_INFINITY 1E+308 // Highest bound in *_hi.mtx
#define PP_MTX_PREFIX "lp_"
#define PP_MTX_POSTFIX_A ".mtx"
#define PP_MTX_POSTFIX_B "_b.mtx"
#define PP_MTX_POSTFIX_C "_c.mtx"
#define PP_MTX_POSTFIX_HI "_hi.mtx"
#define PP_MTX_POSTFIX_LO "_lo.mtx"
#define PP_MTX_POSTFIX_SO "_so.mtx" // Solution point
#define PP_MTX_POSTFIX_V "_v.mtx" // Starting point
//------------------------- MPS format ----------------
#define PP_MPS_NAME_LENGTH 9
#define PP_MPS_PREFIX "lp_"
#define PP_MPS_EXTENSION ".mps"
#define PP_MAX_NUMBER_OF_ROWS (PP_M+3)
#define PP_MAX_NUMBER_OF_COLS (PP_N*(PP_M+1)+1)
//-------------------------- Jobs -----------------------
// Not used.