Hi
I just found the solution to my problem:
1. I used the wrong function -_- It should've been the mincgoptimize() instead of the minlbfgsoptimize() function
2. The protected global variable OriginalData_ needs to be a static variable
With these changes I get my three values in x[] and they work fine with my calculations. But a another problem just came up. My "inside out function" is not 3 dimensional but instead has 5 arguments. I thought it would be no problem to just write two more elements in my x vector: x[1,1,1,0,0]. But with this vector I just get NaN's as results. Is it even possible to let ALGLIB calculate the minimum of a 5 or >5 dimensional function? Or maybe the derivatives of the "inside out function" is to difficult to calculate? The "inside out function" of a superquadratic is defined as followed:
The following function is then to be minimized:
Also I added the new code.
Kind regards
Lorenz