I Combining Position and Velocity in PSO: How to Handle Different Units?

AI Thread Summary
In the discussion about combining position and velocity in Particle Swarm Optimization (PSO), a newcomer seeks clarification on how to add these two components when they are measured in different units. The conversation highlights that while position and velocity typically have distinct units, they are often combined in the PSO algorithm without explicit unit specification. A key point is that the new position is calculated using the formula that incorporates velocity over a time increment, which is commonly assumed to be one second. The delta-time factor is implied in the equations used in PSO, raising questions about its representation in coding. Ultimately, understanding how to handle different units is crucial for correctly implementing the PSO algorithm.
Mke
Messages
5
Reaction score
0
Hello everyone,I have a short question about the PSO since I am a new comer to this field. how can we "add" position with velocity in the simple PSO algorithm, when they are of different units?
 
Mathematics news on Phys.org
Welcome to PF!

Can you elaborate more on your question?

What do you mean by units?

What do you mean by "add" position to velocity?

Is the posititon in inches and feet (ie english units) but the velocity is in meters/sec (metric units) ?
 
Hello thank you for your reply.
When the velocity is determined in the PSo algorithm, one needs to add the weighted velocity to the difference between the ( current positions and the best experience of that position ) . The former is velocity which is normally measured in different units than the position. In PSO it's not common to include units for the position and velocity that is what got me confused.
 
the units of velocity and position in the PSo are normally specified but they are still added together.
 
What are the units for position?

What are the units for velocity?
 
they are not normally specified in the equations that produce the PSO. However, this is not important since regardless of the units, we are adding two different components that have different units. its like adding Kg and Km
 
The best I can say here is that you compute the new position by using a velocity vector in say m/s times a small time increment in seconds to a change in position in meters:

NewPositionmeters = OldPositionmeters + Velocitymeters/sec * delta-timeseconds
 
Thank you but where does this delta-time come in the original equation that produces the new NewPosition which is merely : NewPositionmeters = OldPositionmeters + Velocitymeters/sec . Could you please further explain this ?

Also, how the delta-time is normally represented when the PSO algorithm is coded?
 
  • #10
The delta time is implied in your equation to be 1 second.
 
Back
Top