How can I use Minimize
with the constraint that the minimum be the function of a positive odd integer.
Say I want to minimize
M[l] = l
under the constraint of l
is a positive integer and l is odd.
I tried this:
constraint = (l+1)/2 ∈ Integers
Minimize[{l, constraint}, {l}]
but failed with:
Invalid constraint (1+l)/2 ∈ Integers encountered. Constraints should be equations, inequalities, or variable domain specifications.