The present invention discloses a resource-cost-based
strategy selection method,
system, electronic device, and storage medium. The method comprises the following steps: S1, calculating the memory required for each
alternative strategy and the minimum CPU speed required for it to run within a specified time; S2, calculating the functional realization degree of each
alternative strategy; S3, selecting an effective strategy from the
alternative strategy using a multi-objective optimization
algorithm based on the memory occupied, the minimum CPU speed required, and the functional realization degree of the alternative strategy; S4, screening the effective strategy according to set memory, CPU speed, and functional realization degree thresholds to obtain a preferred strategy. The present invention evaluates hardware resource cost by calculating the memory occupied and the minimum CPU speed requirement of the strategy and setting corresponding thresholds, while also evaluating the functional realization degree, so as to select a preferred strategy that reasonably balances the functional realization degree and resource cost.