Constraint-Aware Optimization Architecture