The OptDir type for representing optimization directions.