Multiply cost expression with a scalar. Restrict to scalar multiplication to keep constraint problem linear.