pyswarms icon indicating copy to clipboard operation
pyswarms copied to clipboard

A research toolkit for particle swarm optimization in Python

Results 39 pyswarms issues
Sort by recently updated
recently updated
newest added

## Description This PR implements an option to provide the swarm position, velocity and global best (or any particle) to the optimizer. This was performed by adding the following optional...

Dear all, My bounds is like this: ``` current_bounds = (np.array([70.e6, 15., 10.e6, 10.e6]),\ np.array([80.e6, 25., 100.e6, 100.e6])) ``` However, in my optimization problem, ``` X[:][2] < X[:][3] ``` should...

```def train(train_loader, model, optimizer, epoch, criterion): model.train() for epoch_ in range(epoch): optimizer.clear_grad() for batch_idx, (data, label) in enumerate(train_loader): # data = data.cuda() # label = label.cuda() # print(np.array(data).shape) # optimizer.clear_grad()...

Hello, Thanks for this great library. I want to minimize an objective function that takes two parameters k and a. But the parameters values have to be from these predifned...

Is it possible to use gpu for pyswarms (in python)? My loss function calls the simulator so it takes a lot of time and I wonder if it is possible...

Add callback function as discussed in issue #359 - Description The change added the feature of calling a callback function at each iteration. - Related Issue #359 - Motivation and...

Hi Pyswarm team, I combined your particle swarm optimization implementation with Constraint Programming and called this hybrid method as PSO-CP. I hope my article improves the visibility of this library....

**Is your feature request related to a problem? Please describe.** Python 3.8 and 3.9 are not currently supported, neither in the setup.py meta-information, nor in the CI/CD pipeline. **Describe the...

admin
tech-debt

I think one of the more common issues we encounter is that some examples don't work out of the box. We may have introduced a lot of changes in the...

documentation
tech-debt

**Is your feature request related to a problem? Please describe.** In order to find the exact same minima and to generate the exact same set of particles, right now, we...

v.1.1.0