Which "optimoptions" should be used for "fmincon()" to optimize a cam-based transmission design using the Optimization Toolbox in MATLAB R2023b?
I am seeking to optimize a cam-based transmission design. In the objective function, properties of different cam options are calculated based on the x-vector which defines a cam option. If some of these properties violate my constraints, that cam option should be understood by "fmincon()" to be infeasible. One of the properties is the variable being minimized by the objective function. Because the cam-based transmission needs to be machinable, we can only accept options within a certain precision.
I have the following questions regarding the "optimoptions" for "fmincon()" that can be leveraged for the application described above.
1) I have a global variable defined and the global variable is shared between optimizer function and non linear constraint function. "fmincon()" function is unable to run properly with the global variables shared between optimizer function and non linear constraint function. It gives a matrix singularity error.
How to achieve the workflow which updates the global variable in the optimizer and also uses the updated global variable for the non-linear constraint function?
2) Is it possible to use an output function and save the history when using "fmincon()" with "UseParallel"?
3) "x0" is set as an initial variable. In history, it is not testing "x0" first, it is testing different values of "x0" based on different bounds. Sometimes these values are infeasible. Why is "x0" not tested when I provided this as the initial variable?
Respuesta aceptada
0 comentarios
Más respuestas (0)
Ver también
Categorías
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!