-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGlobalOptimisationMutation.h
More file actions
53 lines (40 loc) · 1.22 KB
/
GlobalOptimisationMutation.h
File metadata and controls
53 lines (40 loc) · 1.22 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
#ifndef OPTIMISATIONMUTATION_H
#define OPTIMISATIONMUTATION_H
/*
* OptimisationMutation.h
* zContrast
*
* Created by Andrew Logsdail on 02/06/2011.
* Copyright 2011 University of Birmingham. All rights reserved.
*
*/
/**
02/06/2011
- Commented out headers inherited from Utils.h
**/
// #include <cstdlib>
// #include <iostream>
// #include <vector>
// #include <string>
// #include "Structures.h"
// #include "Utils.h"
#include "GlobalOptimisationUtils.h"
class OptimisationMutation{
public:
OptimisationMutation() {idum = NULL;}
~OptimisationMutation() {;}
void setVariables(int *s, std::vector<std::string> *o, bool b, const std::string mutation);
std::vector<RotationPoint> getMutantPoints(int numberOfMutants, int current_generation_count,
LinearStruct ls,
const std::vector<RotationPoint> points_copy);
private:
float newRotationAngle(const float current_value, const int no_steps, const float step_size,
const float min, const float max, const float range, const int dynamic_breadth);
int *idum; // Pointer for random number generator
std::vector<std::string> *output_content;
// MUTATION TYPES //
bool bMStaticPoint;
bool bMDynamicPoint;
bool bScreen;
};
#endif