API  4.2
For MATLAB, Python, Java, and C++ users
Moco

Moco is a part of OpenSim for solving optimal control problems for musculoskeletal systems defined as OpenSim models.

The package has Python, MATLAB, and XML interfaces; the core library is written in C++.

Here are some problems you can solve with Moco:

  • Solve for the muscle activity that tracks a known motion.
  • Solve for a new motion that optimizes some cost (e.g., effort).
  • Solve for mass properties that minimize residual (unrealistic) forces.

Sections of the documentation:

Other resources: