c++functionbooststdminimize

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 any thing in boost or STD that would take my function and find the input arguments that minimize my function output?


Solution

  • I understand you to be looking for code to perform mathematical optimization.

    Boost does not have anything to do this as far as I know, and neither does the standard library; however, NLopt may be what you're looking for.