Skip to content

Instantly share code, notes, and snippets.

@ikatsov
Created February 11, 2020 15:58
Show Gist options
  • Select an option

  • Save ikatsov/8407dd1de47c26289c0ec1875155c091 to your computer and use it in GitHub Desktop.

Select an option

Save ikatsov/8407dd1de47c26289c0ec1875155c091 to your computer and use it in GitHub Desktop.
class SupplyChainEnvironment(object):
...
def demand(self, j, t): # Demand at warehouse j at time t
return np.round(self.d_max/2 +
self.d_max/2*np.sin(2*np.pi*(t + 2*j)/self.T*2) +
np.random.randint(0, self.d_var))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment