First-Order Optimality Condition for a Logarithmic Barrier Objective