General optimization functions have been written in MBS. These functions should be downloaded, compiled and put in a separate lib.
A Varkon project that wants to use the optimization library should add the library in the PID file.
(Sample: $VARKON_PRD\optim_bike\lib;$VARKON_PRD\optim\lib)
The main optimization function in the library is OPT_CONTV2. This is a MACRO function. Three dialogs will pop-up:
Dialog 1:
Set names of parts with optimization parameters, and the maximum number of iterations. As an option may also only the gradient be calculated.
Dialog 2:
Selection of the parameters for each part (instance of the module)
Dialog 3:
Set optimization parameters.
There is a function OPT_PATHV0.MBS where paths to optimization projects should be added. If the path not is defined, then the description strings for parameters will not be displayed in dialog 2. Don't forget to compile OPT_PATHV0.MBS after the change. (There is in Varkon unfortunately not yet any function to retrieve this string)
Parametric Design based on Optimization Techniques (top)
Contents |