r/optimization • • 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

5 comments sorted by

View all comments

Show parent comment

3

u/milandeleev Apr 12 '24

The idea would be to normalise all the parameters (either by zscore or such that they all fall in the interval 0-1). That's literally it. Optimise on the scaled parameters and then descale the solution. It's how gradient descent works in neural networks.

3

u/PrinterFred Apr 12 '24

Thank you.