Ignore:
Timestamp:
Feb 22, 2008, 2:08:40 PM (16 years ago)
Author:
mmc
Message:

Added a -fitness option to the "perform" operation. Right now, you can
specify just the name of an output quantity, and that quantity can be
minimized or maximized. In the future, there should be an expression
parser so you can enter any function of Rappture quantities.

Fixed up the example so that it runs the Rosenbrock function, which is
difficult to minimize. Added a visualize.tcl script, so you can visualize
the output from many different runXXXX.xml files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/optimizer/examples/simple.tcl

    r898 r899  
    4848Rappture::optimizer optim -tool $tool -using pgapack
    4949
    50 optim add number input.number(temperature) -min 200 -max 400
    51 optim add number input.number(Ef) -min 0 -max 1.1
    52 optim configure -popsize 500 -maxruns 5
     50optim add number input.number(x1) -min -2 -max 2
     51optim add number input.number(x2) -min -2 -max 2
     52optim configure -operation minimize -popsize 100 -maxruns 200
    5353
    54 set status [optim perform -updatecommand {puts "checking"}]
     54set status [optim perform \
     55    -fitness output.number(f).current \
     56    -updatecommand {puts "checking"}]
    5557
    5658puts "done: $status"
Note: See TracChangeset for help on using the changeset viewer.