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.
goal or cost?
- barak ostraich
- Posts: 42
- Joined: Thu Apr 12, 2018 12:17 am
- Nicholas Bianco
- Posts: 1050
- Joined: Thu Oct 04, 2012 8:09 pm
Re: goal or cost?
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
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
- barak ostraich
- Posts: 42
- Joined: Thu Apr 12, 2018 12:17 am
Re: goal or cost?
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?
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?