Distinguishing between Next Fit and Best Fit algorithm used for optimising stock cutting problem
You need following libraries to run the program numpy matplotlib sys
If you want to change the input file, change it in algo.py where the file is opened. If you want to create new test cases, use following format for creating new file:
number_of_test_cases rod_length number_of_orders order_values (sepearated by space)
repeat above 2 process for number_of_test_cases If it is still confusing, take a look at output.txt to understand the input format for the algo.py
To show graphs, uncomment the lines in algo.py file