Changeset 1206 for trunk/sources
- Timestamp:
- 02/05/09 11:20:28 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.SimOpt/SimOptParameterPacker.cs
r637 r1206 69 69 // ----- CONSTRAINT HANDLING ----- // 70 70 IVariableInfo info = GetVariableInfo("Items"); 71 bool error= tempcil.EndCombinedOperation(out violatedConstraints);72 if ( !error) {71 bool success = tempcil.EndCombinedOperation(out violatedConstraints); 72 if (success) { 73 73 if (!updateVector) { 74 74 if (info.Local) AddVariable(new Variable(info.ActualName, tempcil)); … … 85 85 // ----- DELETE SUBSCOPES ----- // 86 86 if (delete) { 87 scope.SubScopes.Clear();87 while (scope.SubScopes.Count > 0) scope.RemoveSubScope(scope.SubScopes[0]); 88 88 } 89 89 90 if ( error) return new AtomicOperation(SubOperators[0], scope);90 if (!success) return new AtomicOperation(SubOperators[0], scope); 91 91 else return null; 92 92 }
Note: See TracChangeset
for help on using the changeset viewer.