Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/04/17 17:19:35 (7 years ago)
Author:
gkronber
Message:

#2520: changed all usages of StorableClass to use StorableType with an auto-generated GUID (did not add StorableType to other type definitions yet)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/PersistenceReintegration/HeuristicLab.Problems.NK/3.3/NKBitFlipMoveEvaluator.cs

    r14185 r14927  
    2626using HeuristicLab.Encodings.BinaryVectorEncoding;
    2727using HeuristicLab.Parameters;
    28 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     28using HeuristicLab.Persistence;
    2929
    3030namespace HeuristicLab.Problems.NK {
    3131
    3232  [Item("NK BitFlip Move Evaluator", "Evaluates a single bit flip on an NK landscape.")]
    33   [StorableClass]
     33  [StorableType("7d2664ea-fc8d-4e3e-a384-e2108265cce2")]
    3434  public class NKBitFlipMoveEvaluator : NKMoveEvaluator, IOneBitflipMoveOperator {
    3535    public ILookupParameter<OneBitflipMove> OneBitflipMoveParameter {
     
    8080        double[] w = NKLandscape.Normalize(weights);
    8181        foreach (var c in affectedFitnessComponents) {
    82           moveQuality -= w[c%w.Length]*NKLandscape.F_i(x, c, g[c], seed, q, p);
    83           moveQuality += w[c%w.Length]*NKLandscape.F_i(y, c, g[c], seed, q, p);
     82          moveQuality -= w[c % w.Length] * NKLandscape.F_i(x, c, g[c], seed, q, p);
     83          moveQuality += w[c % w.Length] * NKLandscape.F_i(y, c, g[c], seed, q, p);
    8484        }
    8585      }
Note: See TracChangeset for help on using the changeset viewer.