nlopt icon indicating copy to clipboard operation
nlopt copied to clipboard

add_ Inequality_ Constraint: Prevent user misuse!

Open xianglunkai opened this issue 2 years ago • 0 comments

Void add_ Inequality_ Constraint (vfunc vf, void * f_data, double tool=0)

I think void * f_ data can easily cause errors for users, as they may use the same variable to store different data, which is incorrect to add constraints in a loop. Therefore, I suggest implementing a global data area internally to make f_ Data is only used to transfer data and isolate relationships with the outside world.

xianglunkai avatar Jun 26 '23 04:06 xianglunkai