Created
February 11, 2020 15:58
-
-
Save ikatsov/8407dd1de47c26289c0ec1875155c091 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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