使用R tidymodels确定最佳组合

问题描述

我有几个系统,它们的输出带有多个相同设备类型的输入。目标是确定设备的最佳组合,以在最小化输入的情况下实现输出

例如,我可能有四个串联的泵,以实现0到80 kgpm之间的流量。我想确定在这种情况下最好的两个泵组合。以下内容在这种有限的情况下有效,但是我认为我可以使用print("Lying on the ground next to you is a stone slab.") while True: pick = input("Do you pick up the slab? Yes/No ").lower() # This will make the user input not case-senitive try: if pick == "yes": print("You pick up the slab and begin reading.") elif pick == "no": print("Lying on the ground next to you is a stone slab.") else: raise Exception("Invalid input! Answer Must Be 'Yes' or 'No'") except Exception as e: print(e) else: break 来获得更通用的解决方案,该解决方案考虑到只有一个泵在运行,或者我需要三个泵才能达到120 kgpm的流量。此外,我也许能够确定泵在所有组合中的性能是否都较差。

这是我要达到的目标的最低可复制示例。只需为tidymodels找出正确的recipe即可执行类似的操作。然后,我可以对该特定方法进行更多研究。

tidymodels

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)