-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathConstants.java
34 lines (24 loc) · 1 KB
/
Constants.java
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
package utils;
import java.util.Arrays;
public class Constants {
public static int NO_OF_TASKS = 200; // number of tasks vary from 50, 100, 200
public static int NO_OF_DATA_CENTERS = 20; // number of Datacenters;
public static String baseDir = ".";
public static String matrixDir = "input-matrices";
public static String VMMipsFile = "input-VMMips";
public static String inputDir = "inputs";
public static String inputDirFT = "inputsFT";
public static int POPULATION_SIZE = 100; // Number of Particles.
public static int MAX_ITERATION = 1000; // Number of Iterations
public static double QoSX = 2;
public static double[] getLB(){
double[] lower_bound = new double[Constants.NO_OF_TASKS];
Arrays.fill(lower_bound, 0);
return lower_bound;
}
public static double[] getUB(){
double[] upper_bound = new double[Constants.NO_OF_TASKS];
Arrays.fill(upper_bound, Constants.NO_OF_DATA_CENTERS-1);
return upper_bound;
}
}