The basic idea is interesting, but there is a fundamental mathematical obstacle: reducing the dimension does not generally reduce the difficulty of the optimization problem. The complexity that was present in the N-dimensional search space gets transferred into the one-dimensional path.
For example, with
f(x₁,x₂) = x₁² + x₂²
and
x₁ = x,
x₂ = sin(100x),
we obtain
g(x) = x² + sin²(100x).
The many local minima in g are not really “false” minima introduced by the objective function. They arise because the chosen curve repeatedly moves toward and away from the minimum of the original surface. Increasing the frequency makes the path cover the region more densely, but it simultaneously makes g increasingly oscillatory. Thus, the dimensional reduction has exchanged a multidimensional optimization problem for a difficult one-dimensional global optimization problem.
There is also a deeper issue with an exact version of the proposal. A well-behaved one-dimensional curve cannot provide a reversible, one-to-one parametrization of an N-dimensional region for N > 1. There are space-filling curves, such as Peano and Hilbert curves, which continuously map a one-dimensional interval onto a two-dimensional square. However, such mappings cannot simultaneously possess all the properties we would like—for example, being continuous, one-to-one, smoothly invertible, and preserving the useful local geometry of the original optimization problem.
For a finite desired precision, though, the idea becomes much more practical. Discretize each variable:
xᵢ = aᵢ + kᵢΔᵢ.
Each combination of indices (k₁,...,kN) can then be encoded by a single integer k. Consequently, we can define
g(k) = f(x₁(k),...,xN(k)).
This really does transform the finite grid search into a one-dimensional search, and the transformation can be reversed to recover the original coordinates. Space-filling-curve orderings, such as Hilbert or Morton/Z-order, can even be used so that nearby values of k tend to correspond to nearby points in the original space.
The catch is computational complexity. Suppose each of N variables is represented by M possible values. The original search contains
M^N
possible points. Encoding those M^N points with one variable does not make them disappear; the new one-dimensional variable simply has M^N possible values. This is essentially the curse of dimensionality.
There is one particularly important issue with the proposed sine construction. Setting x₁=x means that for each value of x₁ the curve provides only one corresponding x₂. Therefore, it does not actually sample every point of the rectangle at a fixed finite frequency. Making the oscillations increasingly rapid can make the sampling arbitrarily fine in an appropriate sense, but the limit is precisely where the resulting one-dimensional function becomes increasingly difficult to optimize.
So I would not say the idea is “toast.” A productive modification would be:
Replace the sinusoidal path with a discrete space-filling ordering (such as a Hilbert curve), choose a finite required precision, encode every grid point by one parameter, and then use a global rather than local optimization technique on that parameter.
That gives a mathematically legitimate “unraveling” with a reversible coordinate mapping at finite resolution.
What it unfortunately cannot do, for an arbitrary function, is turn a computationally difficult high-dimensional global optimization problem into an intrinsically easy one-dimensional problem. Without additional assumptions about f—smoothness, convexity, Lipschitz bounds, separability, etc.—the information required to locate the global optimum is still present somewhere. The transformation can reorganize that information, but it cannot generally eliminate the underlying computational complexity.