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

Implement optimize!(args...) #39

Closed
jmejia8 opened this issue Oct 11, 2022 · 1 comment
Closed

Implement optimize!(args...) #39

jmejia8 opened this issue Oct 11, 2022 · 1 comment

Comments

@jmejia8
Copy link
Owner

jmejia8 commented Oct 11, 2022

Implement:

# objective function
f(x) = sum(x.^2)
bounds = [-10 -10 -10; 10 10 10.0]
# optimization method
method = ECA()
# main optimization loop
for iteration in 1:10
    optimize!(f, bounds, method)
end
result = get_result(method)

Another example:

method = ECA()
# main optimization loop
while !should_stop(method)
    optimize!(f, bounds, method)
end
result = get_result(method)
@jmejia8
Copy link
Owner Author

jmejia8 commented Dec 4, 2022

Implemented in #40

@jmejia8 jmejia8 closed this as completed Dec 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant