Free cookie consent management tool by TermsFeed Policy Generator

Changeset 15240 for trunk


Ignore:
Timestamp:
07/13/17 18:25:16 (7 years ago)
Author:
jkarder
Message:

#2762: added AfterDeserialization hook to initialize ResidualSpace

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.BinPacking/3.3/BinPacking.cs

    r15230 r15240  
    8787    }
    8888
     89    [StorableHook(HookType.AfterDeserialization)]
     90    private void AfterDeserialization() {
     91      // BackwardsCompatibility3.3
     92      #region Backwards compatible code, remove with 3.4
     93      if (ResidualSpace == null)
     94        ResidualSpace = new Dictionary<TPos, Tuple<int, int, int>>();
     95      #endregion
     96    }
     97
    8998    protected abstract void GenerateNewExtremePointsForNewItem(TItem item, TPos position);
    9099
Note: See TracChangeset for help on using the changeset viewer.