Assuming X are the unknowns, then the function is quadratic. In the absence of constraints, a quadratic function cannot have both finite maximizing and minimizing points unless K=0. If K is positive definite, the minimizing point is given analytically by setting the gradient to zero, leading to,
X=K\F
There are no maximizing points.