How to minimize C ++ function using boost?

so I have a function like

int f(int i, int j, int c, double d) {
    /*...any operations with i, j, c, d affect on some return int we have*/
}

Is there anything in boost or STD that will use my function and find input arguments that will minimize the output of my function?

+3
source share
3 answers

I understand that you are looking for code to perform mathematical optimization .

Boost has nothing to do, as far as I know, and not a standard library; however, NLopt may be what you are looking for.

+4
source

I assume that you are trying to do a “simple” mathematical multidimensional minimization.

GSL , . ;)

+4

Source: https://habr.com/ru/post/1790020/


All Articles