Changeset 12596
- Timestamp:
- 07/06/15 12:58:17 (9 years ago)
- Location:
- branches/FitnessLandscapeAnalysis
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/FitnessLandscapeAnalysis/HeuristicLab.Problems.NK.Views/BoolMatrixView.cs
r12593 r12596 53 53 } 54 54 55 #region Event Handlers (Content)56 55 void Content_ToStringChanged(object sender, EventArgs e) { 57 56 Rebuild(); 58 57 } 59 #endregion60 58 61 59 private void Rebuild() { … … 72 70 if (tileWidth == 0 || tileHeight == 0) { 73 71 using (Graphics g = Graphics.FromImage(bitmap)) { 74 g.DrawString("BoolMatrix is to big to draw.", DefaultFont, new SolidBrush(Color.Black), 10.0f, height / 2.0f);72 g.DrawString("BoolMatrix is too big to draw.", DefaultFont, new SolidBrush(Color.Black), 10.0f, height / 2.0f); 75 73 g.Flush(); 76 74 } -
branches/FitnessLandscapeAnalysis/HeuristicLab.Problems.NK/NKLandscape.cs
r12592 r12596 97 97 get { return WeightsInitializerParameter.Value; } 98 98 } 99 public int Q { get { return QParameter.Value.Value; } } 100 public double P { get { return PParameter.Value.Value; } } 99 public int Q { 100 get { return QParameter.Value.Value; } 101 } 102 public double P { 103 get { return PParameter.Value.Value; } 104 } 101 105 public IntValue Seed { 102 106 get { return SeedParameter.Value; } … … 113 117 private static HashAlgorithm hashAlgorithmP; 114 118 115 p ublicstatic HashAlgorithm HashAlgorithm {119 private static HashAlgorithm HashAlgorithm { 116 120 get { 117 121 if (hashAlgorithm == null) { … … 122 126 } 123 127 124 p ublicstatic HashAlgorithm HashAlgorithmP {128 private static HashAlgorithm HashAlgorithmP { 125 129 get { 126 130 if (hashAlgorithmP == null) { … … 142 146 random = new MersenneTwister(); 143 147 144 Parameters.Add(new ValueParameter<BoolMatrix>("GeneInteractions", "Every column gives the participating genes for each fitness component "));148 Parameters.Add(new ValueParameter<BoolMatrix>("GeneInteractions", "Every column gives the participating genes for each fitness component.")); 145 149 Parameters.Add(new ValueParameter<IntValue>("ProblemSeed", "The seed used for the random number generator.", new IntValue(0))); 146 150 random.Reset(Seed.Value); … … 149 153 Parameters.Add(new ValueParameter<IntValue>("NrOfFitnessComponents", "Number of fitness component functions. (nr of columns in the interaction column)", new IntValue(10))); 150 154 Parameters.Add(new ValueParameter<IntValue>("NrOfInteractions", "Number of genes interacting with each other. (nr of True values per column in the interaction matrix)", new IntValue(3))); 151 Parameters.Add(new ValueParameter<IntValue>("Q", "Number of allowed fitness values in the (virutal) random table, or zero ", new IntValue(0)));152 Parameters.Add(new ValueParameter<DoubleValue>("P", "Probability of any entry in the (virtual) random table being zero ", new DoubleValue(0)));155 Parameters.Add(new ValueParameter<IntValue>("Q", "Number of allowed fitness values in the (virutal) random table, or zero.", new IntValue(0))); 156 Parameters.Add(new ValueParameter<DoubleValue>("P", "Probability of any entry in the (virtual) random table being zero.", new DoubleValue(0))); 153 157 Parameters.Add(new ValueParameter<DoubleArray>("Weights", "The weights for the component functions. If shorted, will be repeated.", new DoubleArray(new[] { 1.0 }))); 154 Parameters.Add(new OptionalConstrainedValueParameter<IInteractionInitializer>("InteractionInitializer", "Initialize interactions within the component functions."));155 Parameters.Add(new OptionalConstrainedValueParameter<IWeightsInitializer>("WeightsInitializer", "Operator to initialize weights distribution"));158 Parameters.Add(new ConstrainedValueParameter<IInteractionInitializer>("InteractionInitializer", "Initialize interactions within the component functions.")); 159 Parameters.Add(new ConstrainedValueParameter<IWeightsInitializer>("WeightsInitializer", "Operator to initialize the weights distribution.")); 156 160 157 161 //allow just the standard NK[P,Q] formulations at the moment
Note: See TracChangeset
for help on using the changeset viewer.