I am trying to minimize the entropy of a pyten.mp.MPS(). When I use the pyswarms optimizer with the entropy function, as soon, as I multiply the pyten.mp.MPS() with a number (float) the data type of the MPS is changed to a np.dnarray().
Is there a way to avoid this datatype change?
Description
I am trying to minimize the entropy of a pyten.mp.MPS(). When I use the pyswarms optimizer with the entropy function, as soon, as I multiply the pyten.mp.MPS() with a number (float) the data type of the MPS is changed to a np.dnarray(). Is there a way to avoid this datatype change?
What I Did