diff --git a/dlib/global_optimization/find_max_global.h b/dlib/global_optimization/find_max_global.h index 095656504..1fa527b8a 100644 --- a/dlib/global_optimization/find_max_global.h +++ b/dlib/global_optimization/find_max_global.h @@ -217,7 +217,7 @@ template static auto go(T&& f, const matrix& a) -> de double solver_epsilon ) { - return find_max_global(std::move(f), bound1, bound2, std::vector(bound1.size(),false), num, FOREVER, solver_epsilon); + return find_max_global(std::move(f), bound1, bound2, is_integer_variable, num, FOREVER, solver_epsilon); } // ----------------------------------------------------------------------------------------