Ignore:
Timestamp:
Feb 23, 2008 8:16:38 PM (15 years ago)
Author:
mmc
Message:

Final tweaks on the optimization package. The demo now works properly.
Just run "wish simple.tcl" to see it work.

Fixed the Tool class to work better with the optimizer. The "run"
method now returns the result directly as a Rappture::Library object,
and the Analyzer merely loads the object.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/optimizer/src/plugin_pgapack.c

    r899 r903  
    111111    PGASetPopReplaceType(ctx, dataPtr->popRepl);
    112112    PGASetCrossoverType(ctx, PGA_CROSSOVER_UNIFORM);
     113
     114    /* stop if any of these are true */
     115    PGASetStoppingRuleType(ctx, PGA_STOP_MAXITER);
     116    PGASetStoppingRuleType(ctx, PGA_STOP_NOCHANGE);
     117    PGASetStoppingRuleType(ctx, PGA_STOP_TOOSIMILAR);
    113118
    114119    PGASetUserFunction(ctx, PGA_USERFUNCTION_CREATESTRING, PgapCreateString);
Note: See TracChangeset for help on using the changeset viewer.