News vendor problem

This project just have 2 files of code, which are:

  • news_vendor_1.ipynb: basic news vendor problem
  • news_vendor_advertise.ipynb : news vendor problem with advertisement

How to install

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

How to run

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.