Fixed find_max_global() overload that was ignoring one of its arguments.

This commit is contained in:
Davis King 2017-11-25 09:29:36 -05:00
parent 1aa6667481
commit 89d3fe4ee5

View File

@ -217,7 +217,7 @@ template <typename T> static auto go(T&& f, const matrix<double, 0, 1>& a) -> de
double solver_epsilon
)
{
return find_max_global(std::move(f), bound1, bound2, std::vector<bool>(bound1.size(),false), num, FOREVER, solver_epsilon);
return find_max_global(std::move(f), bound1, bound2, is_integer_variable, num, FOREVER, solver_epsilon);
}
// ----------------------------------------------------------------------------------------