Free cookie consent management tool by TermsFeed Policy Generator

Changeset 5203 for trunk


Ignore:
Timestamp:
01/03/11 22:20:03 (14 years ago)
Author:
swagner
Message:

Changed storing the algorithm in each run into an opt-in feature (#1355)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Optimization/3.3/Algorithm.cs

    r4722 r5203  
    124124      executionState = ExecutionState.Stopped;
    125125      executionTime = TimeSpan.Zero;
    126       storeAlgorithmInEachRun = true;
     126      storeAlgorithmInEachRun = false;
    127127      runsCounter = 0;
    128128      Runs = new RunCollection();
     
    132132      executionState = ExecutionState.Stopped;
    133133      executionTime = TimeSpan.Zero;
    134       storeAlgorithmInEachRun = true;
     134      storeAlgorithmInEachRun = false;
    135135      runsCounter = 0;
    136136      Runs = new RunCollection();
     
    140140      executionState = ExecutionState.Stopped;
    141141      executionTime = TimeSpan.Zero;
    142       storeAlgorithmInEachRun = true;
     142      storeAlgorithmInEachRun = false;
    143143      runsCounter = 0;
    144144      Runs = new RunCollection();
     
    148148      executionState = ExecutionState.Stopped;
    149149      executionTime = TimeSpan.Zero;
    150       storeAlgorithmInEachRun = true;
     150      storeAlgorithmInEachRun = false;
    151151      runsCounter = 0;
    152152      Runs = new RunCollection();
     
    156156      executionState = ExecutionState.Stopped;
    157157      executionTime = TimeSpan.Zero;
    158       storeAlgorithmInEachRun = true;
     158      storeAlgorithmInEachRun = false;
    159159      runsCounter = 0;
    160160      Runs = new RunCollection();
    161161    }
    162162    [StorableConstructor]
    163     protected Algorithm(bool deserializing)
    164       : base(deserializing) {
    165       storeAlgorithmInEachRun = true;
    166     }
     163    protected Algorithm(bool deserializing) : base(deserializing) { }
    167164    [StorableHook(HookType.AfterDeserialization)]
    168165    private void AfterDeserialization() {
Note: See TracChangeset for help on using the changeset viewer.