Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/02/09 12:25:32 (15 years ago)
Author:
dtraxing
Message:

Algorithm continuation bug fixed. (ticket #580)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.FixedOperators/3.2/FixedOSGAMain.cs

    r2120 r2129  
    6666      IScope s;
    6767      IScope s2;
     68      bool loopSkipped = true;
     69      bool running = false;
    6870
    6971      DoubleData selectionPressure = null;
     
    105107              Execute(wofc, s2);
    106108              Execute(sr, s2);
     109              loopSkipped = false;
     110            } // foreach
    107111
    108             } // foreach
    109             subscopeNr.Data = 0;
     112            // if for loop skipped, we had to add skiped operations
     113            // to execution pointer.
     114            if (loopSkipped)
     115              executionPointer += 5;
    110116
    111117            Execute(sorter, s);
    112118            ////// END Create Children //////
    113 
    114 
    115           } while (os.Execute(scope) != null);
     119           
     120            running = ExecuteFirstOperator(os, scope);
     121            if (running) subscopeNr.Data = 0;
     122          } while (running);
    116123
    117124          DoReplacement(scope);
     
    129136            break;
    130137
     138          subscopeNr.Data = 0;
    131139          ResetExecutionPointer();
    132140        } // for i generations
Note: See TracChangeset for help on using the changeset viewer.