A value or solution is optimal if it is, in a specified sense, the best possible. For example, in a linear programming problem the maximum or minimum value of the objective function, whichever is required, is the optimal value and a point at which it is attained is an optimal solution.