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"] / %関連項目
RemoteBatchSubmit RemoteBatchMapSubmit TimeConstraint
リモートバッチ計算プロバイダ: WolframBatch AWSBatch AzureBatch CharityEngine
関連するガイド
テキスト
Wolfram Research (2025), CreditConstraint, Wolfram言語関数, https://reference.wolfram.com/language/ref/CreditConstraint.html.
CMS
Wolfram Language. 2025. "CreditConstraint." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/CreditConstraint.html.
APA
Wolfram Language. (2025). CreditConstraint. Wolfram Language & System Documentation Center. Retrieved from 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: 07-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: 07-September-2026]}