Currently the constraint parameters require re-evaluation for each reference to a parameter.
This is because backward-evaluation may depend on the forward-evaluation results during AD for each of the expression nodes that make up the parameters. The only way to avoid this is to make references to the entire expression for the parameters. The problem is where to store the first instance of these expressions..
Currently the constraint parameters require re-evaluation for each reference to a parameter. This is because backward-evaluation may depend on the forward-evaluation results during AD for each of the expression nodes that make up the parameters. The only way to avoid this is to make references to the entire expression for the parameters. The problem is where to store the first instance of these expressions..