Libraries and Matlab

Can I modify the libraries of Anybody for to solve accurately my
research work?

How can I hooking up the files between Matlab and Anybody?

Thanks

Mariano

Hello Mariano and welcome to the group!

  1. Libray access

Currently we do not have an actual API to AnyBody, but we have plans
to enable this, and it is very likely that we could do so on rather
short notice if a user had an especially interesting project. We have
taken the first steps in the sense that the system can dump the
equilibrium equations as .m files. But for full body models, these
systems are very large, and Matlab tends to choke a bit on them.

We might in the short term create an empty solver funcion in a dll
that the user could replace with his own version. In any case, we are
very willing to discuss the various options with those of our users
who are specifically interested.

Today you can influence the solvers by changing parameters in the
objective function. Basically, the objective is the sum of a min/max
term, a linear term, and a quadratic term. By changing the
coeficients on each term you can control the outcome to some extent.
The default setting is that the linear and quadratic coefficients are
zero, but the user can set these inside the model. I believe there is
a tutorial available on this.

  1. Matlab connection

The connection between Matlab and AnyBody is based on the console
aplication of AnyBody. It is called anybodycon.exe, and you can find
it in the installation directory.

Matlab calls this application through the system() or dos() commands.

The procedure is roughly like this:

  1. Matlab generates a small AnyScript include file containing the
    parameters you wish to modify.

  2. Matlab calls AnyBoyCon.exe, which in turn reads the model
    including the inclue file and executes the operations specified in a
    macro file that you have made. You can read about the details of this
    in the Interface Tutorial on anybodytech.com or in the system’s help
    function.

  3. Anybodycon generates a set of comma-separated output files
    containing the results of the analysis. You can specify inside the
    AnyScript model what these files must contain.

  4. Matlab uses the ReadCSV() command to read the data and makes a
    decision on what to do next depending on the analysis of the data and
    what the Matlab user has programmed.

An example of bicycle optimization will be included in the next
release of the repository. Those wishing to play around with it in
the meantime are welcome to ask for a version here in the group.

Best regards,
John

— In anyscript@yahoogroups.com, “mzachi” <mzachi@y…> wrote:
>
>
> Can I modify the libraries of Anybody for to solve accurately my
> research work?
>
> How can I hooking up the files between Matlab and Anybody?
>
> Thanks
>
> Mariano