goal or cost?

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
barak ostraich
Posts: 42
Joined: Thu Apr 12, 2018 12:17 am

goal or cost?

Post by barak ostraich » Tue Oct 13, 2020 4:08 am

Is there any difference of adding separate MocoGoal or adding second cost in the one MocoGoal.
Is it different approach, or it have different numerics.

Tags:

User avatar
Nicholas Bianco
Posts: 1050
Joined: Thu Oct 04, 2012 8:09 pm

Re: goal or cost?

Post by Nicholas Bianco » Tue Oct 13, 2020 10:39 am

Hi Barak,

What do you mean by adding a second cost in one MocoGoal? Maybe you could specify which MocoGoal you're using to clarify.

Thanks,
-Nick

User avatar
barak ostraich
Posts: 42
Joined: Thu Apr 12, 2018 12:17 am

Re: goal or cost?

Post by barak ostraich » Wed Oct 14, 2020 7:29 am

i wrote my own costumized goal which minimize vertical x movement at end time and i also want to minimize reaction force at end time.
also i have integral of effort for example
i can write on the same mocogoal cost[0]=uy(tend); cost[1]=fy(tend); cost[2]=input.integral
and setRequirements(1, 3);

or write different goal for fy(tend) with setRequirements(0, 1);
and different goal for uy(tend) + minimal effort with setRequirements(1, 2);

is there any difference in separating goals?

POST REPLY