Text this: Optimization of parameters in die casting and compression processes using the particle swarm algorithm