Commit 49ffb860 authored by Davis King's avatar Davis King

A minor change to avoid unnecessary work when not using a cutting plane cache.

parent 81d82fac
......@@ -295,7 +295,7 @@ namespace dlib
if (current_risk_gap < eps)
should_stop = true;
if (should_stop && !skip_cache)
if (should_stop && !skip_cache && max_cache_size != 0)
{
// Instead of stopping we shouldn't use the cache on the next iteration. This way
// we can be sure to have the best solution rather than assuming the cache is up-to-date
......
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