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

Johnnieskywalker patch 2 #43

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

johnnieskywalker
Copy link

Further refactoring

Just some refactor, using polymorphism making classes more readable and reuseable
Default implementation of method returns 0.0 in order to make it act the same as in @rgolubtsov original implementation
In order to allow default methods
Used few more OO feautures, extracted some methods, renamed few variables, got rid of few variables like iAdj which was never used beside changing its value, probably had some meaning in original code but it was not used for any calculations or displaying informations.
Number of evaluations which is Hooke class variable was unnecesarily changed in Rosenbrock and Woods classes. Which meant anytime somebody wanted to find minimum of new function and have information about function evaluations had to take care of it inside method calculating values of meathematical objective function now this part is moved to Hooke class which is class of Search Method.
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.

1 participant