CVXPY
Maximize
  Sum(x, None, False)
Subject To
 49: reshape(x + [1. 1. 1. 1.], (1, 4), F) <= [[1. 1. 1. 1.]]
Bounds
 x free
End
----------------------------------------
AFTER COMPILATION
Minimize
  - C0 - C1 - C2 - C3
Subject To
 R0: C0 <= 0
 R1: C1 <= 0
 R2: C2 <= 0
 R3: C3 <= 0
Bounds
 C0 free
 C1 free
 C2 free
 C3 free
End
----------------------------------------
GUROBI
Maximize
  x[0] + x[1] + x[2] + x[3]
Subject To
 R0: - x[0] + reshape_1[0] = 1
 R1: - x[1] + reshape_1[1] = 1
 R2: - x[2] + reshape_1[2] = 1
 R3: - x[3] + reshape_1[3] = 1
 49[0,0]: reshape_1[0] <= 1
 49[0,1]: reshape_1[1] <= 1
 49[0,2]: reshape_1[2] <= 1
 49[0,3]: reshape_1[3] <= 1
Bounds
 x[0] free
 x[1] free
 x[2] free
 x[3] free
 reshape_1[0] free
 reshape_1[1] free
 reshape_1[2] free
 reshape_1[3] free
End