I hope that the solution obtained by solving the inequality constraint satisfies a decreasing trend over time. I wrote it that way👇, but it didn't work during the solution process. Could you please tell me why?
constraint_ueq = [
lambda x: x[i + 1] - x[i] for i in range(n_dim - 1)
]
I hope that the solution obtained by solving the inequality constraint satisfies a decreasing trend over time. I wrote it that way👇, but it didn't work during the solution process. Could you please tell me why?
constraint_ueq = [ lambda x: x[i + 1] - x[i] for i in range(n_dim - 1) ]