Suppress "Optimization Terminated" message

2 Ansichten (letzte 30 Tage)
Jeremy
Jeremy am 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

Antworten (0)

Kategorien

Mehr zu Get Started with Optimization Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by