-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathProblem-bsfTypes.h
More file actions
41 lines (36 loc) · 1.44 KB
/
Copy pathProblem-bsfTypes.h
File metadata and controls
41 lines (36 loc) · 1.44 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
/*==============================================================================
Project: LiFe
Theme: Apex Method
Module: Problem-bsfTypes.h (Predefined BSF Problem Types)
Prefix: PT_bsf
Author: Leonid B. Sokolinsky
This source code is a part of BSF Skeleton
==============================================================================*/
#pragma once
#include "Problem-Types.h" // Problem Types
//=========================== BSF Types =========================
struct PT_bsf_parameter_T { // Type of Parameter for workers (current approximation)
PT_vector_T x; // Current approximation
int indexToBlock; // Index of variable to block
int m; // Index for new inequality (must be > 0)
int sign; // Sign of new inequality
PT_float_T b; // Right part of new inequality
};
struct PT_bsf_mapElem_T { // Type of map-list elements
PT_float_T* a; // Pointer to row: a[0],...,a[n-1]
PT_float_T* b; // Pointer to constant term b: a_0x_0+...+a_{n-1}x_{n-1} \leq b
};
struct PT_bsf_reduceElem_T { // Type of reduce-list elements for Job 0 (default)
PT_vector_T projection; // Point projection onto hyperplane
int nonZeroCounter;
bool pointIn;
};
struct PT_bsf_reduceElem_T_1 { // Type of reduce-list elements for Job 1
bool pointIn;
};
struct PT_bsf_reduceElem_T_2 { // Type of reduce-list elements for Job 2
bool pointIn;
};
struct PT_bsf_reduceElem_T_3 { // Type of reduce-list elements for Job 3
// Not used
};