Made a function, returning right values. Taking a break before I start the optimization
Matching the output given, need to make loops for figuring out allocations
Finished everything up. I need to adjust so if there are stocks given that are not in the data, they are not handled. This can easily be rectified by looking at tutorial 3 on the site. This also would be nice if the optimizer is a function. Both are on the todo list