Specifications

243
AnyOperation &Operation = ..Study.InverseDynamicAnalysis;
};
AnyDesVar SaddleHeight = {
Val = Main.BikeParameters.SaddleHeight;
Min = Val - 0.05;
Max = Val + 0.03;
};
AnyDesVar SaddlePos = {
Val = Main.BikeParameters.SaddlePos;
Min = Val - 0.07;
Max = Val + 0.10;
};
AnyDesMeasure Metab = {
Val = secint(..Study.Metabolism(),..Study.tArray);
Type = ObjectiveFun;
};
};
Please notice that the AnyDesMeasure MaxAct was removed, and so was the entire line with the nStep
specification. The optimization study does not use any particular step size but rather adapts its steps
automatically to find the accurate position of the optimum. This is another advantage of optimization over a
parameter study. Finally, we have added a type specification to the Metab object specifying that this is the
objective function of the problem.
This is the definition of an optimization problem that will vary the saddle height and horizontal position to
minimize the metabolism. Let us run it and see what happens. Load the model in and please make sure that
you have a Model View window open so that you can see the difference in the way the seat position is varied
compared to the parameter study.