Commit e558318c authored by Davis King's avatar Davis King

Fixed initial point selection to only happen once.

parent a451e792
......@@ -702,7 +702,8 @@ namespace dlib
for (auto& info : functions)
{
const long dims = info->spec.lower.size();
if (info->ub.num_points() < 1)
// If this is the very beginning of the optimization process
if (info->ub.num_points()+info->outstanding_evals.size() < 1)
{
outstanding_function_eval_request new_req;
new_req.request_id = next_request_id++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment