In General :
Given
Find
such that
is minimized
Method :
i.e.