-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Download/Upload initial values and parameters for each step by using shiny modules #1
base: master
Are you sure you want to change the base?
Conversation
- use shiny modules - for each step (Factory, Distributor, Wholesaler, Retailer) now possible: + download/upload of initial values + setting parameters
app.R to use new shiny modules
app.R instead
app.R and modules in bullwhipgame package instead
Dear Guido, Thanks for your interest and contribution to the bullwhipgame project. I have tried to run the new version but I have some problems. It seems that the modules are not found
|
Hi Marlene, Guido |
RStudio project file to build the bullwhipgame package
Hi Marlena, I added the RStudio project file to the fork. Thx, Guido |
The Rstudio project file does not work. I have made the update of all package and Rstudio and still does not work.
|
initVal in /data
renamed newbullwhipgame back to bullwhipgame
I missed the data path and updated three files. |
I check @home and it worked by open the project in RStudio as a new project from git with project URL |
Hi Guido, |
You should run the app in a browser not in RStudio view. Thant is one restriction of the download/upload functionality. |
dplyr::
Hi Marlene, |
Hi Guido, |
Ok, I will try to go for a csv file. |
Every player is trying to forecast its own demand (the orders of the downstream participant). Actually there are 5 participants, the customer demand is the most important because the game start with these initial values. I need to understand your code to change it later. For instance, I will put just one upload file for the customer demand in the left side panel. In my example I've just put 5 values but maybe I have 1 year of data, with more data the retailer forecast will be more accurate. But the wholesaler can't see the customer demand, he can see only retailer's orders ( wholesaler's demand). The wholesaler could have historical data of the retailer but this demand (retailer's orders) is linked with customer demand. Every participant try indirectly to forecast the customer demand, I think it will be difficult to upload 5 files. For this kind of situation we have the bullwhip effect. |
Guido, |
CSV customer demand upload
inst/shiny/app.R
Outdated
navbarPage( | ||
"newbullwhipgame", | ||
id = "mainNavbarPage", | ||
theme = "flatky.css", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here theme = "flatly.css"
inst/shiny/app.R
Outdated
ns <- session$ns | ||
|
||
# reactive values | ||
inputs_rv <- reactiveVal() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the role of inputs_rv <- reactiveVal()
here and in srvModPlay.R file ?
Dear Marchena,
I forked and added shiny modules to download/upload initial values and to be able to change parameetrs for each production/replenishment step.
Please have a look.
Thx,
Guido