Skip to content
New issue

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

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

Already on GitHub? # to your account

Batch optimization #30

Closed
yimingli1998 opened this issue Oct 2, 2023 · 1 comment
Closed

Batch optimization #30

yimingli1998 opened this issue Oct 2, 2023 · 1 comment

Comments

@yimingli1998
Copy link

Thank you for the nice library! These solvers are pretty good but in reality, they are easy to fall into local optimum. I am wondering if it is possible to have a batch version with different initial guess in Pytorch? For instance, the example in your case

# initial point
x0 = torch.tensor([1., 8.])

can be

# initial point
x0 = torch.rand(N,2)

and outputs are with N results, so that we can choose the best one.

@yimingli1998
Copy link
Author

I just found that it already supports batch operation and my previous code was wrong. Thank you again for the nice library!

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

No branches or pull requests

1 participant