added DCP checks for constraints, add evaluate functions for socp