How can I deal with big numbers with big magnitude?

56 Views Asked by At

I'm trying to solve optimization problem with very big numbers with large magnitude: from $10^3$ up to $10^9$. I'm using LBFGS-b fortran solver, but almost always I get ABNORMAL errors or invalid result. I think it happens due to numbers amplitude and size.

What approaches can be used to deal with it?