1844, "to act as an optimist, take the most hopeful view of a matter," a back-formation from optimist. Meaning "to make the most of, develop to the utmost" is attested by 1857. Related: Optimized; optimizing.
optimize your resources
optimize a computer program