contestada

Let M be the number of units to make and B be the number of units to buy. If it costs $2 to make a unit and $3 to buy a unit and 4000 units are needed, the objective function is

Min 2M + 3B

Min 4000 (M + B)

Max 2M + 3B

Max 8000M + 12000B