2 Consider the 2-D cost function used in Homework 2: F(s1,s2) = 10^9-(625-(s1-25)^2) *(1600-(s2-10)^2)*sin((s1)*pi/10)*sin((s2)*pi/10) For question 1 here we will maximize this function. The global maximum is F(125,115) = 1088359375. Since each decision variable can take on integer values from 0 to 127, the input variables s1 and s2 can each be represented by 7-bit binary string. Hence the domain of this cost function can be represented by a 14-bit binary string as, s = [sb 1 , sb 2 , . .. sb 14 ], where the first seven elements form the binary representation of s1 and the last seven bits represent s2. i.e. ∑ = − = 7

This is the end of the preview. Sign up
to
access the rest of the document.