I am wondering if MATLAB has a solver that is able to maximize a multivariate piece-wise constant function.
When I use the naïve optimize function, it gets stuck at the initial value since it's constant within a neighborhood of the initial value.
I am wondering if MATLAB has a solver that is able to maximize a multivariate piece-wise constant function.
When I use the naïve optimize function, it gets stuck at the initial value since it's constant within a neighborhood of the initial value.
I would follow a more elaborated version of @Frederick suggestion. A simple stochastic approach, but not exactly a linear search because of the multivariate characteristic: simulated annealing