Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/05/09 11:19:38 (15 years ago)
Author:
abeham
Message:

fixed bug in SimOptParameterExtractor (ticket #485)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.SimOpt/SimOptParameterExtractor.cs

    r637 r1205  
    4747      for (int i = 0; i < cil.Count; i++) {
    4848        IScope tmp = new Scope(scope.Name + "_Param" + i.ToString());
     49        scope.AddSubScope(tmp);
    4950        try {
    50           scope.AddVariable(cil[i].Clone() as Variable);
     51          tmp.AddVariable(cil[i].Clone() as Variable);
    5152        } catch (InvalidCastException ice) {
    5253          throw new InvalidCastException("Parameters in the constrained item list have to be encapsulated in a variable!\r\n\r\n" + ice.Message);
    5354        }
    54         scope.AddSubScope(tmp);
    5555      }
    5656      if (delete) {
Note: See TracChangeset for help on using the changeset viewer.