Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Last phase duration is not an optimization variable #68

Open
ferrolho opened this issue Mar 17, 2020 · 1 comment
Open

Last phase duration is not an optimization variable #68

ferrolho opened this issue Mar 17, 2020 · 1 comment

Comments

@ferrolho
Copy link

Hi Alex! Could you please clarify the comment below that you have left out in the source?

* 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?

@awinkler
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants