I know that some algorithms exist for my kind of problem but I'm having problems naming it and the solution associated. Here is my problem :
- I have a set W of wallet with money
- I have a set P of project on which I can spend my money
- Each wallet w has an amount of money M, and I can spend this money only on several project and only a specific amount
- Each project p needs an amount d of money
Goal : Maximize the allocation of my wallet money so I can fund most of my project.
Also I would rather have all my project funded at for instance 95%, than having some project funded at 100% and other at 0%.
So I guess the function to minimize would be the sum of all (d-(all the money allocted to this project))² assuming I have not enough money to fund all my projects
Example :
I have 100€ on my first wallet, and I can spend 70% on project 1, 20% on project 3 and 10% on project 3
And I have 200€ my second wallet where I can spend 30% on project 1, 50% on project 2 and 20% and project 3.
About my projects :
- Project 1 needs at least 120€
- Project 2 needs at least 100€
- Project 3 needs at least 110€
Thank you for help !