CVXPY
Maximize
  x
Subject To
 21: maximum(1.0, 2.0) <= 2.0
 25: x <= 0.0
Bounds
 x free
End
----------------------------------------
AFTER COMPILATION
Minimize
  - C0
Subject To
 R0: <= 0
 R1: C0 <= 0
Bounds
 C0 free
End
----------------------------------------
GUROBI
Maximize
  x
Subject To
 21: maximum_1 <= 2
 25: x <= 0
Bounds
 x free
 maximum_1 free
General Constraints
 GC0: maximum_1 = MAX ( 2 )
End