made elementwise soc constraint