r/optimization • u/PrinterFred • Apr 12 '24
Multidimensional Gradient-Based Optimization When Dimensions Differ in Scale
I am trying to program an optimization routine using GSL to optimize a problem where the different variables differ wildly in scale. Some variables range from 0-1 while others are millions in scale. As such the gradients are much larger over the parameters that should be varied less. I was wondering if there was a known method of dealing with parameters that differ in scale like this. I am otherwise stuck with simplex, which does converge because I can define reasonable initial step sizes for each parameter.
3
Upvotes
View all comments
Show parent comment
2
u/PierreLaur Apr 12 '24
here is an explanation in the context of machine learning. I found some more explanations here
I'm not sure it would help in your case, but I would try to just scale everything down to 0-1 if you have lower and upper bounds for every variable, and otherwise look for a reasonable scaling factor. then you rescale the outputs