Changeset 1166 for trunk/packages/optimizer/examples
- Timestamp:
- Sep 27, 2008 1:58:13 AM (16 years ago)
- Location:
- trunk/packages/optimizer/examples
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/optimizer/examples/app-qdot.tcl
r1153 r1166 24 24 set popsize 100 ;# size of each population for genetic algorithm 25 25 26 set xml_path [lindex $argv 0] 27 puts $xml_path 28 29 26 30 # ---------------------------------------------------------------------- 27 31 # Create a Tool object based on the tool.xml file... 28 32 # ---------------------------------------------------------------------- 29 33 Rappture::getopts argv params { 30 value -tool tool.xml34 value -tool tool.xml 31 35 } 32 36 37 after 2000 38 puts $params(-tool) 39 after 2000 33 40 #blt::bltdebug 100 34 41 -
trunk/packages/optimizer/examples/simple.tcl
r1071 r1166 23 23 set auto_path [linsert $auto_path 0 /home/ganesh/workspace/optim_post_dir_changes/src/lib] 24 24 package require -exact RapptureOptimizer 1.1 25 set popsize 100 ;# size of each population for genetic algorithm 25 26 26 27 27 # ---------------------------------------------------------------------- … … 64 64 button .quit -text Quit -command "optim abort yes" 65 65 pack .quit 66 button .restart -text Restart -command "optim restart yes" 67 pack .restart 68 66 69 set colors {magenta purple blue DeepSkyBlue cyan green yellow Gold orange tomato red FireBrick black} 67 70 … … 97 100 Rappture::optimizer optim -tool $tool -using pgapack 98 101 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 102 optim add number input.number(x1) -min -2 -max 2 -randdist uniform -strictmin yes -strictmax yes 103 optim add number input.number(x2) -min -2 -max 2 -randdist uniform -strictmin yes -strictmax yes 104 optim 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 105 optim get configure 102 106 103 optim get configure 107 set popsize 200 ;# size of each population for genetic algorithm 104 108 105 109 set status [optim perform \
Note: See TracChangeset
for help on using the changeset viewer.