Scalable determination of penalization weights for constrained optimizations on approximate solvers | Synapse