1 package aco
.parameter
.eas
;
4 import aco
.parameter
.*;
6 public class EASParameter
9 protected double Alpha
;
12 public EASParameter() {
23 ChoiceInformationStrategy cis
,
24 HeuristicInformationStrategy his
) {
25 super(5.0, 0.5, 0.0001,
26 0, NumOfCities
, NumOfCities
, NumOfCities
,
27 acos
, gs
, tzs
, ds
, ps
, cis
, his
);
31 int NumOfAnts
, int NumOfCities
, int NearestNeighbourListDepth
,
37 ChoiceInformationStrategy cis
,
38 HeuristicInformationStrategy his
) {
39 super(5.0, 0.5, 0.0001,
40 0, NumOfAnts
, NumOfCities
, NearestNeighbourListDepth
,
41 acos
, gs
, tzs
, ds
, ps
, cis
, his
);
45 double Alpha
, double Beta
, double Roh
, double TauZero
,
46 int MaxNumOfTours
, int NumOfAnts
, int NumOfCities
,
47 int NearestNeighbourListDepth
,
53 ChoiceInformationStrategy cis
,
54 HeuristicInformationStrategy his
) {
59 this.TauZero
= TauZero
;
61 this.MaxNumOfTours
= 0;
62 this.NumOfAnts
= NumOfAnts
;
63 this.NumOfCities
= NumOfCities
;
64 this.NearestNeighbourListDepth
= NearestNeighbourListDepth
;
75 public double getAlpha() {
79 public void setAlpha(double Alpha
) {
83 public double getE() {
87 public void setE(double E
) {
92 public String
toString() {
93 StringBuilder result
= new StringBuilder();
94 result
.append("Alpha: " + Alpha
+ "\n");
95 result
.append("Beta: " + Beta
+ "\n");
96 result
.append("Roh: " + Roh
+ "\n");
97 result
.append("E: " + E
+ "\n");
98 result
.append("TauZero: " + TauZero
+ "\n");
99 result
.append("NumOfAnts: " + NumOfAnts
+ "\n");
100 result
.append("NumOfCities: " + NumOfCities
+ "\n");
101 result
.append("MaxNumOfTours: " + MaxNumOfTours
+ "\n");
102 result
.append("NearestNeighbourListDepth: " + NearestNeighbourListDepth
+ "\n");
104 return result
.toString();