All optimization procedures take into account the shipping costs, which are deposited with the respective supplier. The value entered by the vendor is used as the default value. You can overwrite this value for the eServices of the vendor in the purchase order configuration.
The shipping costs are visible on every shopping cart. This link also leads to the configuration of the value: