Skip to content

Commit bc8e4ae

Browse files
Christoph BodensteinChristoph Bodenstein
authored andcommitted
Allow Benchmark function selection in Cached_Benchmark-Simulator.
Removed unused import in MainFrame.
1 parent 493eb36 commit bc8e4ae

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

TimeNETOptimizationEnvironment/src/toe/MainFrame.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
import java.io.*;
2525
import java.io.File;
2626
import java.io.IOException;
27-
import static java.lang.Math.random;
2827
import java.math.BigInteger;
2928
import java.security.SecureRandom;
3029
import java.util.ArrayList;

TimeNETOptimizationEnvironment/src/toe/support.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
public class support {
4040

4141
//This Version of TimeNetExperimentGenerator
42-
public static final String VERSION = "2015-04-07";
42+
public static final String VERSION = "2015-05-18";
4343

4444
//Define some program-wide default values
4545
public static final double DEFAULT_STEPPING = 1.0;
@@ -166,7 +166,7 @@ public class support {
166166
public static final double DEFAULT_Rastrigin_limitupper = 5;
167167

168168
//Defaults for Opti-Statistics
169-
public static final int DEFAULT_NUMBER_OF_OPTI_PROB_CLASSES = 100;
169+
public static final int DEFAULT_NUMBER_OF_OPTI_PROB_CLASSES = 10;
170170

171171
private static int globalSimulationCounter = 0;
172172

@@ -1048,8 +1048,7 @@ public static typeOfSimulator getChosenSimulatorType() {
10481048
*/
10491049
public static void setChosenSimulatorType(typeOfSimulator aChosenSimulatorType) {
10501050
chosenSimulatorType = aChosenSimulatorType;
1051-
getMainFrame().setBenchmarkFunctionComboboxEnabled(chosenSimulatorType.equals(typeOfSimulator.Benchmark));
1052-
1051+
getMainFrame().setBenchmarkFunctionComboboxEnabled(chosenSimulatorType.equals(typeOfSimulator.Benchmark)||chosenSimulatorType.equals(typeOfSimulator.Cached_Benchmark));
10531052
}
10541053

10551054
/**

0 commit comments

Comments
 (0)