gpt4 book ai didi

Prolog - 聚合 : extract other variable than the minimum

转载 作者:行者123 更新时间:2023-12-04 02:42:03 25 4
gpt4 key购买 nike

我想知道在我这样做时是否有办法提取 X 值:

aggregate_all(min(V), simulate(P, Color, V, X), Value)

simulate 谓词与 PColor 作为输入,VX 作为输出。

目前,这很适合获取 V 的最小值,但我真正想要的是在 V X 的值strong> 处于最小值。

有办法吗?关于我应该如何进行的任何想法?

最佳答案

聚合库支持最小/最大标量聚合的“见证”:那么这应该可以工作

aggregate_all(min(V,X), simulate(P, Color, V, X), min(Value,X))

关于Prolog - 聚合 : extract other variable than the minimum,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19710309/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com