liu-hy / food-bank-network-simulation Goto Github PK
View Code? Open in Web Editor NEWThis project forked from ischool-597pr/2022fall_projects
This project forked from ischool-597pr/2022fall_projects
Food class' subtraction function doesn't seem to account for the case when an order is greater than the available quantity.
Is this the intended behavior?
I should say that I would prefer it to still perform the subtraction (even if we end up with negative quantities) and the negative be handled outside the subtract
func.
related to #1
I will assume the food bank purchases the freshest food always using the max_days
global. Related to #1 and #7.
What do you think @Liu-Hy @lucianli123
To simulate increased load, it will be necessary to increase households per pantry and food insecure population on FoodBank init
Would be useful to have a Global
class with our constants and variables that need to be accessed throught the project (like days and food price).
Motivation: better type hinting than dict; organization
Is there already a way for the food bank to give the pantry the food asked?
Still need to implement 3 methods
The operation of food pantries should be the main computation bottleneck. We can try multiprocessing. My idea is to load the foodbanks into several processes in the simulation file. The global coordination of purchase may be done after that in the main process.
Can @Liu-Hy add a get_demant
function that returns the demand for each of the products pls
It can return a dict
with keys being the types and values being the demand in weight.
I need the real demand, regardless if ir was met or not. This is to calculate how much of each food the bank will need to buy.
Should we have the pantry save some of the budget it receives?
Or can I spend it entirely on food?
Adding decorators in Numba to speed up our program is not as straightforward as expected. I met some problems.
We can try with different methods for selective compilation.
https://numba.readthedocs.io/en/stable/user/index.html
https://canvas.illinois.edu/courses/22388/pages/unit-12-page?module_item_id=2075138
Move from Food Pantry to food bank, make storage variable actually
Suppose there are
It does not require much precision. Are there any numeric methods to solve the integral equation, or should I simply look up a table using the monotonicity of the expectation with
@rodigu, can you implement a main function of foodbank plz? No need to buy or share food, by calling run_one_day(), it receives newly donated food, lets pantries run sequentially, and gets aggregate waste and utility. I hope to have some result on the pantries of a bank before presentation.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.