I have a StationInfo class with properties
public uint EnergyConsumption { get; private set; } public uint CurrentEnergyAmount { get; private set; } public uint NumRobotsNearStation { get; private set; } public uint NumStationsAround { get; private set; } I create an array of type StationInfo .
I need to find in this array such a StationInfo object that satisfies this condition at the same time:
EnergyConsumption -> min CurrentEnergyAmount -> max NumRobotsNearStation -> max NumStationsAround -> min An example with 2 arguments:
{2,1} {3,4} {6,7} {1,10} {2, 15} need to find among the objects object with its properties {min, max}
There are no objects with such conditions, but there is an object close to the condition - {2, 15}
Is there any ready-made tool for sharps, and then there is no desire to waste time writing an algorithm.
EnergyConsumptionand maximumCurrentEnergyAmountfall on different elements? - VladD{2, 15}better than{1, 10}? What is the exact criterion? - VladD