Hello
I want to know when we use script measure to minimize a cos function, how we can determine what variable should be minimized in composite measure?
I have created a variable that I am going to minimize it by name MetabolicCost. But I doubt where I should write the MetabolicCost in composite measure. For example, the following code determines that MetabolicCost should be minimized?
CompositeMeasure {
<< import/measures/SelfSelectedSpeed.scone >>
ScriptMeasure {
name = MetabolicCost
weight = 1
minimize = 1
script_file = "import/measures/measureFUN.lua"
}
best
Script Measure
- Thomas Geijtenbeek
- Posts: 437
- Joined: Wed Mar 12, 2014 8:08 am
Re: Script Measure
You can always add "minimize = 1" in the top-level CompositeMeasure, just to be sure. Otherwise, the CompositeMeasure will try to determine this from the minimize setting of the child measures.