|
|
|
@ -778,6 +778,12 @@ int nmCalculationAutoFitPSO::getCurrentIteration() const
|
|
|
|
return m_currentIteration;
|
|
|
|
return m_currentIteration;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int nmCalculationAutoFitPSO::getTotalEvaluations() const
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
// 返回本轮拟合实际调用真实求解器的总次数,供完成日志展示。
|
|
|
|
|
|
|
|
return m_totalEvaluations;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
QVector<double> nmCalculationAutoFitPSO::getBestSolution() const
|
|
|
|
QVector<double> nmCalculationAutoFitPSO::getBestSolution() const
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// 返回紧凑的“启用参数向量”,顺序与 m_enabledParamIndices 一致。
|
|
|
|
// 返回紧凑的“启用参数向量”,顺序与 m_enabledParamIndices 一致。
|
|
|
|
@ -3597,7 +3603,6 @@ void nmCalculationAutoFitPSO::updateParticle(int particleIndex)
|
|
|
|
particle.evaluatedThisIteration = true;
|
|
|
|
particle.evaluatedThisIteration = true;
|
|
|
|
particle.lastEvaluationSuccess = true;
|
|
|
|
particle.lastEvaluationSuccess = true;
|
|
|
|
particle.screeningDecision = "initial_solution_cache";
|
|
|
|
particle.screeningDecision = "initial_solution_cache";
|
|
|
|
emit logMessageGenerated(tr("Particle 1 reused the verified initial solution"));
|
|
|
|
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
QTime evalTimer;
|
|
|
|
QTime evalTimer;
|
|
|
|
evalTimer.start();
|
|
|
|
evalTimer.start();
|
|
|
|
|