The definition of optimal is the most favorable.
An example of optimal used as an adjective is in the phrase "optimal score," which means the highest score someone can get on a game.
most favorable or desirable; best; optimum
Origin of optimaloptim(um) + -al
Most favorable or desirable; optimum.