You should read linear programming with whole unknowns . Although this is not linear programming, it can give you an idea of what to look for.
Alternatively, you can go to https://mathoverflow.net/ to get some help in remodeling the problem (you have the problem of optimizing the integer domain with gaps in the function of the target and my math will rust a little to correctly place it, also check the combinatorial optimization
(for the correct solution, go to EDIT4 below)
EDIT: Regarding linearity
Look for the maximum
& Sigma; n k = 1 (1 - min (s · t k , C k )) / max (s & Midot; t <sub> ksub>, C <sub> ksub>))
may be the same as viewing maximum for
& Sigma; n k = 1 (max (s · t k , C k )) - min (s & Midot; t <sub> ksub>, C <sub> ksub>))
provided that
& Sigma; n k = 1 max (s · t k , C k )> 0 Strike>
(which is always true, given your conditions)
And the term
& Sigma; n k = 1 (max (s · t k , C k )) - min (s & Midot; t <sub> ksub>, C <sub> ksub>))
can be written as
& Sigma; n k = 1 Abs (s? t k - C k )
which, if the question mark above, gives the following
- maximize s and all t k
- minimize all c k
So, all C = 1 and all t and s → ∞ for which your original expression approaches n.
Well, that’s why I initially made a mistake with my proposal, because I decided that the question is degenerate in trivial , which is actually quite obvious.
EDIT2: My math is rusty, the procedure described above is incorrect (first step), but the output / solution seems to be confirmed, so I will not fix it (it gets a little more complicated)
EDIT3 (C k are constants and other fixes):
Perhaps I should remove the answer, I believe that the following reasoning is sufficient as a solution:
The fact that C k are constant and not equal to 1 does not matter. To maximize the original expression
& Sigma; n k = 1 (1 - min (s · t k , C k )) / max (s & Midot; t <sub> ksub>, C <sub> ksub>))
you have to collapse
& Sigma; n k = 1 min (s · t k , C k ) / max (s & Midot; t <sub> ksub>, C <sub> ksub>)
since the domain of everything is positive, to make this ratio minimal, you must make the numerator as small as possible and the denominator as large as possible.
The ratio is zero if
- t k is 0 for all k ⇒ min (0, C k ) / max (0, C k ) = 0 / C k = 0
It also approaches zero if
- s approaches zero (similarly above, only this limit is 0)
- s approaches infinity ⇒ min (∞, C k ) / max (∞, C k ) = C k / ∞ = 0
(the above equalities should use limit notation ...) - t k approaches infinity for all k
(each condition is sufficient in itself and represents a solution when their combination does not allow s to approach 0, and t k approaches infinity or vice versa, in this case it is important, it’s faster)
EDIT4: (actual solution)
Well, basically all of the above gives an answer to the wrong question, because I was looking for the maximum source objective function, not the minimum.
At a minimum, this is a little more interesting, a minimum is achieved if each member
min (s & Midot; t <sub> xub>, C <sub> xub>) / max (s & Midot; t <sub> xub>, C <sub> xsub>) = 1
This is the maximum of this term given by the parameter area. If we assume (at the moment) that C k is an integer, then a solution can be found for
s = 1
t <sub> xsub> = C <sub> xsub>
However, C k is not an integer in the general case, so we need to find s for which C k / s is an integer.
If we can write C k as
N k / D k , where N, D ∈ ℤ + (in other words, if C k rational )
then the solution may be
s = 1 / & prod; n k = 1 D k
t k = N k / D k ? & prod; n k = 1 D k (which is ∈ ℤ + )
Note: Instead of choosing s for the product of all denominators, it can be set to the largest common denominator, and then t k can be calculated accordingly.
Note 2: The graphs of the function diagrams in question helped me catch my mistake in misunderstanding the issue (realizing that the minimum is much more interesting). I also realized that the functions are continuous (but not smooth, so the differentiations are discontinuous).
Note3: The above solution works for rational numbers, but I believe that irrational numbers do not make the solution useless, since decimal or other rational representation of irrational numbers will give an approximate solution proportionally close to the real solution, since the representation is close to the actual value of the irrational number.