CVXPY
Minimize
  Sum(x + [1. 2.][True, False], None, False)
Subject To
Bounds
 0.0 <= x
End
----------------------------------------
AFTER COMPILATION
Minimize
  C0 + 0 C1
Subject To
Bounds
End
----------------------------------------
GUROBI
Minimize
  x[0] + 0 x[1] + Constant
Subject To
Bounds
 Constant = 1
End