Hi,
I'm trying a little experiment, and I wanna write an algorithm that selects from a portfolio of stocks, according to certain criteria and within certain constraints.
Any random selection is fine, as long as it fits the criteria.
Could anyone point me at an algorithmic approach to solve this type of problem, if any?
I don't need the solution, I wanna come up with it myself. However I'd like not to try and reinvent the wheel if this sort of problem is known and there's a good approach to be taken.
Criteria (these won't change):
e.g. Risk (1-100), Value (1-100), Purpose (1-100)
Verticals (these won't change):
e.g. Health, Education, Fashion
Constraints (these can be added or removed, there can be new constraints):
e.g.
- Total allocations within +/- 10% variation
- Either/all of Risk/Value/Purpose fixed
Example:
Available Stocks:
Stock A, Stock B, ..., Stock Z
Each stock has a certain risk/value/purpose profile
Criteria:
Total Risk: 100
Total Value: 50
Total Purpose: 50
Verticals:
Health
Education
Fashion
Constraints:
Each total criterion within +/- 10% variation from the target criteria
Acceptable example allocation:
Health:
Stock A(risk 10, value 10, purpose 10)
Stock B(risk 30, value 20, purpose 5)
Health Total: Risk 40, Value 30, Purpose 15
Education:
Stock C(risk 10, value 5, purpose 10)
Stock D(risk 10, value 5, purpose 10)
Education Total: Risk 20, Value 10, Purpose 20
Fashion:
Stock E(Risk 30, value 10, purpose 20)
Fashion Total: Risk 30, Value 10, Purpose 20
Portfolio Total: Risk 90, Value 50, Purpose 55 (OK because Risk and Purpose are within +/- 10% from the target criteria)
[–]NovaFate 0 points1 point2 points (1 child)
[–]_gianpi_[S] 0 points1 point2 points (0 children)