This project just have 2 files of code, which are:
news_vendor_1.ipynb
: basic news vendor problemnews_vendor_advertise.ipynb
: news vendor problem with advertisement
Use any python IDE to run this project. I recommend using VSCode with Jupyter Notebook extension.
Add this code as first cell of each notebook
!pip install -r requirements.txt
Just run each cell of notebook from top to bottom. The code will show the result as table or chart. Meaning of each part is explained in the comment.