1
General Questions and Answers / Question about non linear particle swarm optimization parameter
« on: November 19, 2025, 04:34 »
Hello,
I am trying to use the NonLinearParticleSwarmOptimizationParameters (NLPSOP) for testing purposes. In the TiSi MTP tutorial, it is mentioned that NLPSOP can define the MTP more accurately, so I wanted to try it in my training script. I attached the NLPSOP settings I used as Figure 1.
However, when I run the script, I get the following error:
AttributeError: 'NonLinearParticleSwarmOptimizationParameters' object has no attribute 'initialCoefficients'. Did you mean: 'initialCoefficientsFromFile'?
Could you please let me know how to properly use NLPSOP when training an MTP? In particular, I would like to know:
1. How to correctly specify the NLPSOP block in the training script, and
2. How to set and use initialCoefficientsFromFile (e.g., what kind of file is expected and how to generate it).
Thank you in advance for your help.
I am trying to use the NonLinearParticleSwarmOptimizationParameters (NLPSOP) for testing purposes. In the TiSi MTP tutorial, it is mentioned that NLPSOP can define the MTP more accurately, so I wanted to try it in my training script. I attached the NLPSOP settings I used as Figure 1.
However, when I run the script, I get the following error:
AttributeError: 'NonLinearParticleSwarmOptimizationParameters' object has no attribute 'initialCoefficients'. Did you mean: 'initialCoefficientsFromFile'?
Could you please let me know how to properly use NLPSOP when training an MTP? In particular, I would like to know:
1. How to correctly specify the NLPSOP block in the training script, and
2. How to set and use initialCoefficientsFromFile (e.g., what kind of file is expected and how to generate it).
Thank you in advance for your help.
