Fix sign issue for SOC constraints