Ignore:
Timestamp:
Sep 27, 2008 1:58:13 AM (14 years ago)
Author:
liveletlive
Message:

Changes Made: Vanilla restart added, no modifications can be made to existing parameters in the middle of a run. Only mutation creates a new population on restart.
New configuration options added: MutationandCrossover? option. amount to be mutated made configurable. configration for (not)allowing duplicate strings added. app-qdot and simple modified to keep pace with these changes.

Location:
trunk/packages/optimizer/examples
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/optimizer/examples/app-qdot.tcl

    r1153 r1166  
    2424set popsize 100  ;# size of each population for genetic algorithm
    2525
     26set xml_path [lindex $argv 0]
     27puts $xml_path
     28
     29
    2630# ----------------------------------------------------------------------
    2731#  Create a Tool object based on the tool.xml file...
    2832# ----------------------------------------------------------------------
    2933Rappture::getopts argv params {
    30     value -tool tool.xml
     34     value -tool tool.xml
    3135}
    3236
     37after 2000
     38puts $params(-tool)
     39after 2000
    3340#blt::bltdebug 100
    3441
  • trunk/packages/optimizer/examples/simple.tcl

    r1071 r1166  
    2323set auto_path [linsert $auto_path 0 /home/ganesh/workspace/optim_post_dir_changes/src/lib]
    2424package require -exact RapptureOptimizer 1.1
    25 set popsize 100  ;# size of each population for genetic algorithm
     25
    2626
    2727# ----------------------------------------------------------------------
     
    6464button .quit -text Quit -command "optim abort yes"
    6565pack .quit
     66button .restart -text Restart -command "optim restart yes"
     67pack .restart
     68
    6669set colors {magenta purple blue DeepSkyBlue cyan green yellow Gold orange tomato red FireBrick black}
    6770
     
    97100Rappture::optimizer optim -tool $tool -using pgapack
    98101
    99 optim add number input.number(x1) -min -2 -max 2 -randdist gaussian -stddev 0.7 -mean 1 -mutnrate 0.01 -strictmin yes -strictmax yes
    100 optim add number input.number(x2) -min -2 -max 2 -randdist gaussian -stddev 0.5 -mean 1 -mutnrate 0.01 -strictmin yes -strictmax yes
    101 #optim configure -operation minimize -popsize 50 -maxruns 100 -mutnrate 0.01 -crossovrate 0.9 -randnumseed 24 -stpcriteria toosimilar
     102optim add number input.number(x1) -min -2 -max 2 -randdist uniform -strictmin yes -strictmax yes
     103optim add number input.number(x2) -min -2 -max 2 -randdist uniform -strictmin yes -strictmax yes
     104optim configure -operation minimize -popsize 200 -maxruns 100 -mutnrate 0.5 -crossovrate 0.8 -randnumseed 20 -stpcriteria toosimilar -mutnandcrossover no -allowdup no -numReplPerPop 50 -mutnValue 0.1
     105optim get configure
    102106
    103 optim get configure
     107set popsize 200  ;# size of each population for genetic algorithm
    104108
    105109set status [optim perform \
Note: See TracChangeset for help on using the changeset viewer.