Open abaillod opened 4 months ago
not sure, but one suggestion would be to implement this without Jax since it's such a simple penalty
Looks like the derivative decorator trips over the fact that the optimizable only has one dof. The Jax internals do not make it very clear, but check if current.dofs.dep_opts()[0].dofs_free_status
is a boolean instead of a length one array thereof
Hi,
I tried implementing a constraint on the max current in a coil. The objective looks like this:
However, when running the following simple test,
I get the error
Does anyone have an idea how to fix it?