The purpose of this exercise is to provide practice using the LINGO or Excel solvers. Find the values of X and Y that minimize the function :
Min X^2-4x+y^2+8y+20
Do not assume nonnegativity of the x and y variables. Recall that by default LINGO ASSUMES nonnegative variables. In order to allow the variables to take on negative valuse you can add
@free(x); @Free(y);
Alternatively, if you want LINGO to allow for negative values by default, in the LINGO menu select Options and then click General Solver, and then uncheck the Variables assumed nonegative tab