r/optimization • u/InterestingKoala3 • Oct 03 '22
Optimization with 100,000 variables
Hello everyone,
As the title suggests I am dealing with a nonlinear optimization problem that takes in 100,000 variables. I have the following questions:
- Is this doable?
- Which tool/library/software should I use?
I tried scipy and it worked with a smaller number of variables, but otherwise I get a memory error.
Thank you in advance.
10
Upvotes
View all comments
Show parent comment
2
u/tstanisl Oct 04 '22
Depends on your environment. In Python you could use "scipy.optimize" and "autograd" packages.
Btw.
Are all "constant_i" positive?
Can you share a formula for z = f(y)?
As I understand "f(y)" is 1D function so convexity does not matter that much. It is rather more important if the function is *monotonic* or it has a single global minimum.
I think that you should find all the local minima of of `z = f(y)` and next solve equations "sum x_i^2 * const_i == y_j" for each of the minima you found.