I am trying to find an algorithm that can optimize the lengths of a mechanical linkage, such as a simple four-bar linkage, to provide the longest stride length possible. I am aware of a project that tried to solve a similar problem, however the physical geometry was quite more complex then what I need to do. The details of a stackoverflow question relating to this more advanced geometry was asked here:
Evolutionary Algorithm for the Theo Jansen Walking Mechanism
Although actual code would be great, I understand that this specific problem may be slightly beyond the scope of stackoverflow and thus helping me in the right direction would be great. I have spent a significant amount of time trying to find such an algorithm or piece of code that can get me started but I have been unsuccessful. An academic paper outlining a very similar optimization problem can be downloaded from this link:
A four-bar linkage similar to the one that I want to optimize can be seen in this image:
http://bdml.stanford.edu/twiki/pub/Rise/StickyBotIII/MechanicalIcon.png
To provide a bit more background. I am looking to write a script were one can input the general linkage geometry that they want (general size and location of links and pivots) and then the code will optimize the either the lengths of the individual linkage pieces or the position of the pivots (or both) for the longest stride length.In the image linked to above the stride length would simply be defined as the length that the robotic "paw" moves. I essentially want to optimize for maximum paw movement.
I would optimally like to program the algorithm in python or matlab. Thanks for any help! I love stackoverflow!