Changeset 899 for trunk/optimizer/examples
- Timestamp:
- Feb 22, 2008, 2:08:40 PM (17 years ago)
- Location:
- trunk/optimizer/examples
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/optimizer/examples/simple.tcl
r898 r899 48 48 Rappture::optimizer optim -tool $tool -using pgapack 49 49 50 optim add number input.number( temperature) -min 200 -max 40051 optim add number input.number( Ef) -min 0 -max 1.152 optim configure - popsize 500 -maxruns 550 optim add number input.number(x1) -min -2 -max 2 51 optim add number input.number(x2) -min -2 -max 2 52 optim configure -operation minimize -popsize 100 -maxruns 200 53 53 54 set status [optim perform -updatecommand {puts "checking"}] 54 set status [optim perform \ 55 -fitness output.number(f).current \ 56 -updatecommand {puts "checking"}] 55 57 56 58 puts "done: $status" -
trunk/optimizer/examples/tool.xml
r898 r899 2 2 <run> 3 3 <tool> 4 <about>Press Simulate to view results.</about> 5 <command>tclsh @tool/fermi.tcl @driver</command> 4 <about>This tool is a good example for optimization. It implements the Rosenbrock function: 5 6 f(x1,x2) = 100(x2 - x1**2)**2 + (1-x1)**2 7 8 This has a minimum at (x1,x2) = (1,1). 9 10 Press Simulate to view results.</about> 11 <command>tclsh @tool/rosenbrock.tcl @driver</command> 6 12 </tool> 7 13 <input> 8 <number id=" temperature">14 <number id="x1"> 9 15 <about> 10 <label> Ambient temperature</label>11 <description> Temperature of the environment.</description>16 <label>X1</label> 17 <description>first coordinate</description> 12 18 </about> 13 <units>K</units> 14 <min>0K</min> 15 <max>500K</max> 16 <default>300K</default> 17 <preset> 18 <value>300K</value> 19 <label>300K (room temperature)</label> 20 </preset> 21 <preset> 22 <value>77K</value> 23 <label>77K (liquid nitrogen)</label> 24 </preset> 25 <preset> 26 <value>4.2K</value> 27 <label>4.2K (liquid helium)</label> 28 </preset> 19 <min>-2</min> 20 <max>2</max> 21 <default>0</default> 29 22 </number> 30 <number id=" Ef">23 <number id="x2"> 31 24 <about> 32 <label> Fermi Level</label>33 <description> Energy at center of distribution.</description>25 <label>X2</label> 26 <description>second coordinate</description> 34 27 </about> 35 <units>eV</units> 36 <min>-10eV</min> 37 <max>10eV</max> 38 <default>0eV</default> 28 <min>-2</min> 29 <max>2</max> 30 <default>0</default> 39 31 </number> 40 32 </input> 41 33 </run> 42
Note: See TracChangeset
for help on using the changeset viewer.