Optimization Input Data

The input data for an optimization is organized in a python parametric model class with methods that operate on the class.

This organization allows for a logical arrangement of the data and methods. The main program where the model is run becomes particularly simple with this arrangement.

When you use MotionView to generate the optimization model, it writes out the Python parametric model class. Some of the methods in the class will be empty. You will have to manually fill these out. Normally, this is quite straightforward.

A working example of a four-bar mechanism will be used to explain the organization of the optimization input data.