This example shows a four-bar linkage modeled in Simscape Multibody that is optimized using MATLAB so that the tip of the linkage follows a desired trajectory.
Mechanical designers often wish to design mechanisms that will enable an end effector to follow a certain path. The lengths of the links and the position of the end effector influence the trajectory of the end effector in a complex kinematic relationship. Optimization algorithms can be used to tune those lengths to achieve the desired motion.
The process is similar to what is described in the video “Computational Design of Mechanical Characters” https://www.youtube.com/watch?v=DfznnKUwywQ
Steve Miller (2020). Four Bar Linkage Optimization in Simscape (https://www.mathworks.com/matlabcentral/fileexchange/62371-four-bar-linkage-optimization-in-simscape), MATLAB Central File Exchange. Retrieved .
I am using the latest version of Matlab R2018b. Please send me the files! Much obliged!
My email is email@example.com
@John - which MATLAB release are you using? Let me know and I may be able to send you the files tested and saved in the release you are using.
Hello! It doesn't work on my PC! I have the next error:
Output argument "options" (and maybe others) not assigned during call to "optimoptions".
Error in sm_four_bar_optim_match_path (line 86)
opt = optimoptions('patternsearch','PollMethod','GSSPositiveBasis2N',...
Please, tell me! What should I do to fix it?
Added R2019a version.
Added R2018b version.
Added R2018a version.
Added R2017b version.