Well I disagree with the statement in its absolute form.
I agree with the fact that the integration could have be done
nicer. However given the fact of the current manpower situation
I decided to eliminate opt-pilot as a project (repo, executable etc.)
and integrate this in a minimal invasive way with the amount of manpower available.
This eases our build/release chain and at the same time enables more easily large(est)
scale optimisation with OPAL. Important for PSI and at the moment ANL (AWA).
I've made the branch OptPilotOpalParser (529108af) where this is implemented. Now the commands of Opt-Pilot are parsed with Opals parser. For an example expand test_optPilot.tgz, change directory to test_optPilot and then
This defines two objectives named obj1 and obj2.
The optimiser knows several mathematical functions and methods to access output files (see below).
Without the use of these special methods design variables or the variables from the .stat output file at the end of the simulation can be used for optimisation.
Note that objectives are always minimised, so in this case a solution where the final energy is maximal and the final horizontal emittance is minimal is looked for.
This defines two constraints. The syntax is similar to the OBJECTIVE syntax.
The first constraint consists of only design variables and will be evaluated before the simulation.
The second constraint will be evaluated after the simulation.
///////////////// QUOTE END //////////////////////
Do expressions like in obj1 work, where you just give the name of a .stat variable?
Do expressions like in con1 and their pre-evaluation work?
I haven't been using opt-Pilot for a while and it definitely didn't work then. By the way, the usage of opt-pilot in Opal has changed since Opal parses the opt-Pilot commands natively. See the example at the bottom of the wiki page.