LoslegenKostenlos loslegen

Simulation testing solution exercise

You are working to minimize the transportation costs of shipping products from warehouses in New York, and Atlanta, to customers in the East, South, Midwest, and West regions of the US. The input data of transportation costs and demand for each region is given to you in the variable d which is printed in the console.

Diese Übung ist Teil des Kurses

Supply Chain Analytics in Python

Kurs anzeigen

Interaktive Übung

Versuche dich an dieser Übung, indem du diesen Beispielcode vervollständigst.

# Add noise to the objective function
model += lpSum([(X[(c, w)] + (d.loc[c, w] + ____()))
                for w in wh for c in cust])
Code bearbeiten und ausführen