Suppress "Optimization Terminated" message

4 views (last 30 days)
Jeremy
Jeremy on 4 Jul 2014
Can someone tell me why this R2014a code
intlinprogOptions = optimoptions('intlinprog', 'Display', 'off', 'MaxTime', 120, 'NodeSelection', 'simplebestproj', 'IPPreprocess', 'basic');
try
[x,fval,ExitFlag,~] = intlinprog(values,intcon,a',b,[],[],lb,ub,intlinprogOptions);
catch err
CrashCount = CrashCount + 1;
fprintf(FileIDLog, 'Intlinprog crash with default options with error identifier %s \r\n', err.identifier);
end
Still results in a stream of "Optimization Terminated" messages when run? I thought setting Display to Off with optimoptions would suppress this?
I also have the same problem with this R2011b code
bintprogOptions = optimset('Display', 'off', 'NodeDisplayInterval', 50, 'BranchStrategy', 'maxinfeas', 'MaxTime', 120, 'NodeSearchStrategy', 'bn', 'TolXInteger', 1.0e-6);
try
[x,fval,ExitFlag] = bintprog(values, a', b, [],[],[],bintprogOptions);
catch err
CrashCount = CrashCount + 1;
fprintf(FileIDLog, 'Bintprog crash with default options with error identifier %s \r\n',err.identifier);
Thanks! end

Answers (0)

Categories

Find more on Get Started with Optimization Toolbox in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!