You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Attention: At this point last phase duration is not an optimization variable
* and a way should be found to optimize over all phases while setting the
* total duration by constraint and not through hard parameterization.
If the total time is a constraint and all phase durations (except last phase) are decision variables then isn't the last phase duration an implicit decision variable?
The text was updated successfully, but these errors were encountered:
Hi Henrique! Currently the total time t_total is not a decision variable nor a constraint. It's set at the start (hard parameterization). With that fixed, we have to make sure all optimized phase durations sum to that value. I also wanted to somehow ensure that even during the iterations of the solver this is true (otherwise you might query something at times that are out of bounds). So I decided instead of optimizing also the last phase duration, this value will be the buffer to fill up to the total time. This hack still doesn't 100% ensure the above, but that was the idea.
Hi Alex! Could you please clarify the comment below that you have left out in the source?
towr/towr/include/towr/constraints/total_duration_constraint.h
Lines 46 to 48 in f738737
If the total time is a constraint and all phase durations (except last phase) are decision variables then isn't the last phase duration an implicit decision variable?
The text was updated successfully, but these errors were encountered: