bioptim
bioptim copied to clipboard
penalty.weight=1 if not declared for multinode_objectives
If no weight is declared in a multinode_objectve, it transforms it into a constraint (l.493 de multinode_penaty). This was historically OK, but this behavior is not expected by the user anymore, it should be changed.
if mnc.weight:
mnc.base = ObjectiveFunction.MayerFunction
What is it treated in #694 ?
No, I did not do it, that's why I opened an issue. It is more complicated than one line of code, because there is an artefact of multinode_objective & multinode_constraint going through the same piece of code.