The set command supports the opt criteria parameter to turn on and off the current optimization goal setting.
The set <opt criteria> statement, with a 0 or 1 syntax, accepts on/off/default, where default indicates that you are using the current optimization goal setting for this optimization criteria.
See the Reference Manual: Commands).