
Z = aXbY (a, b are constants, real numbers, X, Y are integers and there is a certain range) What is the minimum value of  Z ?
I forgot to add the absolute value in the front. Is this difficult to find the minimum value of  Z ?
If only the minimum value of Z is sought, as in the answer oflhempire, that is, the minimum value of ax minus the maximum value of by.
Thanks to thesuny00059program, in fact, in my case, X and Y may be a larger range, or may need to select two or more numbers in a set of real numbers as a and b to calculate So using the exhaustive method may result in orders of magnitude of calculation time. Now I want to find a way to find the minimum or close to the minimum  Z . 
