CVXPY
Maximize
  x
Subject To
 31: maximum(x + 1.0, 1.0) <= 2.0
Bounds
 x free
End
----------------------------------------
AFTER COMPILATION
Minimize
  - C0
Subject To
 R0: C0 - C1 <= -1
 R1: - C1 <= -1
 R2: C1 <= 2
Bounds
 C0 free
 C1 free
End
----------------------------------------
GUROBI
Maximize
  x
Subject To
 R0: - x + AddExpression_1 = 1
 31: maximum_2 <= 2
Bounds
 x free
 AddExpression_1 free
 maximum_2 free
General Constraints
 GC0: maximum_2 = MAX ( AddExpression_1 , 1 )
End