意外停电如何得到优化数据


#1

优化仿真比较费时间,软件的便利设置时在优化仿真完成后。如果因故没有完成优化,能不能接着优化?答案是不行。

能不能从现有的优化结果获取一些信息?可以。以这个简单例子为例,方法是:

可以在Visualizer里察看优化的历史,包括
?getsweepresult(“thickness_optimization”);
fom trend
best fom
parameter trend
best parameters
fom history
parameter history
genVec
memberVec
paramsTrend
fomTrend
paramHistory
fomHistory
bestParams
bestFom

可以通过Visualizer将数据送入脚本工作空间,例如paramsTrend


和parameter history

如果你有类似的例子,请将原文件发来我们可以找一下具体数据。

使用脚本的例子在这里
m=“thickness_optimization”;

?getsweepdata(m);

genVec = getsweepdata(m,“genVec”); # Generation vector (1D vector, Ng)

memberVec = getsweepdata(m,“memberVec”); # Generation member vector (1D vector, Nm)

fomTrend = getsweepdata(m,“fomTrend”); # Best of each generation, same as shown in Opt. GUI window (1D vector, Ng)

paramsTrend = getsweepdata(m,“paramsTrend”); # Parameters corresponding to FOM trend (3D matrix, 1 x Np x Ng)

bestFom = getsweepdata(m,“bestFom”); # Global best FOM

bestParams = getsweepdata(m,“bestParams”); # Parameters corresponding to global best FOM (1D vector, Np)

fomHistory = getsweepdata(m,“fomHistory”); # Every FOM calculated in optimization (2D maxtrix, Nm x Ng)

paramHistory = getsweepdata(m,“paramHistory”); # Every parameter set used in optimization (3D maxtrix, Np x Nm x Ng)

plot(genVec,fomTrend,“generation number”,“fom Trend”,“best FOM of each generation”);

?"Best FOM: "+num2str(bestFom);

?"Best Params: "+num2str(bestParams);

?"Total number of simulations run: "+num2str(length(genVec)*length(memberVec));

image(memberVec,genVec,fomHistory,“member”,“generation”,“All FOM’s obtained”);