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

New GetNumberOfIterations method in planning problem #603

Merged
merged 3 commits into from Jun 20, 2019
Merged

Conversation

cmower
Copy link
Collaborator

@cmower cmower commented Jun 19, 2019

New method to get the number of iterations, rather than

niter = len(problem.get_cost_evolution()[0])

now,

niter = problem.get_number_of_iterations()

Not sure why but in GetNumberOfIterations implementation I tried to return cost_evolution_.size() but this gave incorrect values. An explanation would be interesting to know.

@cmower cmower requested a review from wxmerkt June 19, 2019 12:46
Copy link
Collaborator

@wxmerkt wxmerkt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK apart from implicit cast, note this is not supported by all solvers yet.

@wxmerkt wxmerkt merged commit ad63cce into master Jun 20, 2019
@wxmerkt wxmerkt deleted the cem-get-niter branch June 20, 2019 22:34
wxmerkt pushed a commit that referenced this pull request Jun 22, 2020
* [core/python] new GetNumberOfIterations method in planning problem

* [core/python] Updated post-review.
* static_cast in planning_problem
* get_num_ -> get_number_of_

* [core] Minor fix
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

Successfully merging this pull request may close these issues.

None yet

2 participants