I'm writing a computer program and I need to fit some IF..ELSE condition into mathematic model, so I can't use regular programming constructs. For example, how would I turn this into mathematic equation (or inequation):
if (3ax + 5by + 8cz >= 320) then
w = 1.0;
else
w = 0.8;
I understand how to express the domain of w to accept only values 0.8 and 1.0 by using:
(w - 1.0) * (w - 0.8) = 0
But I haven't got a clue how to transform the above IF statement. Is it even possible?
P.S. I'm rather new to math overflow, so I'm not sure which tags to assign to this question. Please feel free to re-tag appropriately.

