SQL Optimizer for SQL Server is a separate application that needs to be downloaded and installed. Hence the reason why the Optimize SQL function is greyed out.
SQL Optimizer for SQL Server can be downloaded from
https://support.quest.com/sql-optimizer-for-sql-server/