Free cookie consent management tool by TermsFeed Policy Generator

Changeset 1206


Ignore:
Timestamp:
02/05/09 11:20:28 (16 years ago)
Author:
abeham
Message:

fixed bug in SimOptParameterPacker (ticket #484)

File:
1 edited

Legend:

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

    r637 r1206  
    6969      // ----- CONSTRAINT HANDLING ----- //
    7070      IVariableInfo info = GetVariableInfo("Items");
    71       bool error = tempcil.EndCombinedOperation(out violatedConstraints);
    72       if (!error) {
     71      bool success = tempcil.EndCombinedOperation(out violatedConstraints);
     72      if (success) {
    7373        if (!updateVector) {
    7474          if (info.Local) AddVariable(new Variable(info.ActualName, tempcil));
     
    8585      // ----- DELETE SUBSCOPES ----- //
    8686      if (delete) {
    87         scope.SubScopes.Clear();
     87        while (scope.SubScopes.Count > 0) scope.RemoveSubScope(scope.SubScopes[0]);
    8888      }
    8989
    90       if (error) return new AtomicOperation(SubOperators[0], scope);
     90      if (!success) return new AtomicOperation(SubOperators[0], scope);
    9191      else return null;
    9292    }
Note: See TracChangeset for help on using the changeset viewer.