CreditConstraint
是一个选项,用于指定执行特定操作时可花费的最大服务积分.
更多信息
- CreditConstraintn 指定在执行某个特定操作时应花费的最大服务积分 n.
- n 的值可以是一个整数或一个 "Credits" 量.
- CreditConstraintInfinity 指定对所消耗的服务积分的数量不应有任何限制.
- 当与 RemoteBatchSubmit 和 RemoteBatchMapSubmit 一起用于除 "WolframBatch" 之外的提供者时, CreditConstraint 选项的值将用于计算一个基于作业许可成本的时间约束.
- "WolframBatch" 提供者会实时监控服务积分的使用情况,并在其超过由 CreditConstraint 选项指定的限制时终止该作业. 这与使用 TimeConstraint 选项设置的任何时间限制相互独立.
范例
基本范例 (2)
job = RemoteBatchSubmit["WolframBatch", FactorInteger[2 ^ 1023 - 7], CreditConstraint -> Quantity[1000, "Credits"]]向 "AWSBatch" 提供者提交一个作业,并设置服务积分限制:
job = RemoteBatchSubmit[RemoteBatchSubmissionEnvironment[...], 2 + 2, CreditConstraint -> 42]job["TimeConstraint"]job["LicensingSettings"]["Entitlement"]["StandardKernelCost"]job["CreditConstraint"] / %相关指南
-
▪
- 远程批处理作业
文本
Wolfram Research (2025),CreditConstraint,Wolfram 语言函数,https://reference.wolfram.com/language/ref/CreditConstraint.html.
CMS
Wolfram 语言. 2025. "CreditConstraint." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/CreditConstraint.html.
APA
Wolfram 语言. (2025). CreditConstraint. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/CreditConstraint.html 年
BibTeX
@misc{reference.wolfram_2026_creditconstraint, author="Wolfram Research", title="{CreditConstraint}", year="2025", howpublished="\url{https://reference.wolfram.com/language/ref/CreditConstraint.html}", note=[Accessed: 21-September-2026]}
BibLaTeX
@online{reference.wolfram_2026_creditconstraint, organization={Wolfram Research}, title={CreditConstraint}, year={2025}, url={https://reference.wolfram.com/language/ref/CreditConstraint.html}, note=[Accessed: 21-September-2026]}