Interior Point Method Python Definition Function Math