We have an application that users can use to select horses they want to bet on for a specific betting type.
The application should then create a reduced system which takes into account the ranking values the user have setup.
We need help creating the reduction class, we should be able to input the system together with ranking values and get a reduced system back (or just information on how to use the class).
***I need a class which can create reduction systems for a horse racing system software(explanation below).***
The reduced system should be able to handle ranking values supplied with the input to weight the inputs.
The user want to bet on the following horses in 7 races (each row on the system costs 1 unit):
This translates into:
1440 rows (1440 units)
5 x 2 x 2 x 3 x 4 x 2 x 3 = 1440
* I then want to feed the 7 races together with the horses into a function and also be able to specify weigths on specific horses (if the user thinks that horse 1 in race3 is going to win, the algorithm should take that into account).
* I also want to specify the maximum units I want the resulting system to cost.
If I want the reduced system to cost 1440 units, the reduction is 0%. If I want the reduced system to cost 400 units the reduction is 72%.
* The function/class should have a way to give me the resulting system as some sort of list/array etc, that I can iterate (foreach or similair) through.
* When processed the number of rows on the output system does not matter much (unless it is 1, because then it is not reduced ofcourse).