Question: Getting maple to choose optimum value

Hi

I have this problem regarding how many employees (the variable x) is needed to get the lowest wage cost in a company. I have written the following model:

>restart:

>assume(x,integer)

>assume(x>=0)

>a:=16362-(40+x)*504:

>b:=IF(a<0,16362-(40+x)*420,(40+x)*84:

>c:=IF(b<0,16362,(40+x)*420)

>d:=IF(a>0,a*12.65*2.0)+IF(b>0,b*12.65*1.5)+c*12.65

I already know that the wage will be the lowest if x=>9. What i want to do is to get Maple to tell me that x should be exaclty nine. I tried with minimize and optimize and a bit of programming, but with no luck. I can't figure out how to make maple do this so any help would be appreciated!

Best regards

Hector

Please Wait...