Closed shodimaggio closed 7 years ago
I've experienced on MATLAB R2016a that the completion of the compile may require conducting MYTEST four times.
MYTEST does not fail on MATLAB R2015a/b.
On R2016a,
On R2016b,
Test case saivdr.testcase.dictionary.nsoltx.design.NsoltDesignerFrqTestCase always fails.
This problem can be avoided by setting UseParallel option to false.
The above problem is caused by a bug of fmincon (Bug ID: 1563824). I put the following code in private function setHybridFmincon_ of saivdr.dictionary.nsoltx.design.AbstNsoltDesignerGaFmin:
strver = version('-release');
if strcmp(strver,'2016b') || strcmp(strver,'2017a')
% Bug ID: 1563824
hybridopts = optimoptions(hybridopts,...
'Algorithm','interior-point');
end
The automatic code generation function was abolished. Instead, I prepared a code generation script MYBUILD.
MYTEST fails when CODEGEN operations are called many times during the process. Try MYTEST until all MEX files are compiled.