This function is used internally by essR to calculate the penalized objective function in constrained problems
For internal use of MEIGOR.