finalOPLP function

OP and LP estimation routine