决策优化器API是解决分配和优化问题的终极工具,旨在自动化和改善多个行业的决策流程。通过集成此API,用户可以根据特定需求和约束评估项目,从而准确高效地优化结果。它提供了先进的功能,如根据加权标准评估项目、惩罚约束违反以及根据自定义参数动态调整。该API非常适合寻求最大化收益、最小化成本或在预算内平衡分配的组织。凭借其灵活性和稳健性,该API无缝集成到工作流程中,适应物流、金融、电子商务等行业。它简化了复杂决策,使开发人员能够专注于创新和有效解决关键问题。
优化分配 - 端点功能
| 对象 | 描述 |
|---|---|
请求体 |
[必需] Json |
[{"itemAssignments":[{"id":"1","requirements":[{"type":"item.color","scoringLogic":{"method":"Penalize","comparisonLogic":"NotEqual","weight":10,"constraintHardness":"hard","weightRelativePercentage":1.0},"values":["Blue"],"valueType":"string","penalty":10,"penaltyPercentage":0.5}],"budget":{"amount":100.0,"weight":10},"item":{"id":"2","name":"Name 2","descriptors":[{"type":"item.color","value":"Blue"},{"type":"item.capability.Plays Diablo Immortal","value":"true"},{"type":"item.weight","value":"675"},{"type":"item.storage.capacity","value":"128"}],"cost":100.0,"scoreExplanation":{"overallHardScore":0,"overallSoftScore":0,"overallScorePercentage":1.0,"overallScorePercentageWithRewards":1.0,"requirementsScorePercentage":1.0,"budgetScorePercentage":1.0,"brokenRequirements":[],"exceededRequirements":[],"metRequirements":[]}},"requirementsTotalWeight":10,"rejectedSoftRequirements":[]}],"items":[{"id":"2","name":"Name 2","descriptors":[{"type":"item.color","value":"Blue"},{"type":"item.capability.Plays Diablo Immortal","value":"true"},{"type":"item.weight","value":"675"},{"type":"item.storage.capacity","value":"128"}],"cost":100.0,"scoreExplanation":{"overallHardScore":0,"overallSoftScore":0,"overallScorePercentage":1.0,"overallScorePercentageWithRewards":1.0,"requirementsScorePercentage":1.0,"budgetScorePercentage":1.0,"brokenRequirements":[],"exceededRequirements":[],"metRequirements":[]}},{"id":"4","name":"Name 4","descriptors":[{"type":"item.color","value":"Red"},{"type":"item.capability.PLays Minecraft","value":"true"},{"type":"item.weight","value":"850"},{"type":"item.storage.capacity","value":"256"}],"cost":100.0,"scoreExplanation":{"overallHardScore":-10,"overallSoftScore":0,"overallScorePercentage":0.5,"overallScorePercentageWithRewards":0.5,"requirementsScorePercentage":0.0,"budgetScorePercentage":1.0,"brokenRequirements":[{"type":"item.color","scoringLogic":{"method":"Penalize","comparisonLogic":"NotEqual","weight":10,"constraintHardness":"hard","weightRelativePercentage":1.0},"values":["Blue"],"valueType":"string","penalty":10,"penaltyPercentage":0.5}],"exceededRequirements":[],"metRequirements":[]}},{"id":"1","name":"Name 1","descriptors":[{"type":"item.color","value":"Red"},{"type":"item.capability.Plays Roblox","value":"true"},{"type":"item.weight","value":"450"},{"type":"item.storage.capacity","value":"256"}],"cost":200.0,"scoreExplanation":{"overallHardScore":-20,"overallSoftScore":0,"overallScorePercentage":0.0,"overallScorePercentageWithRewards":0.0,"requirementsScorePercentage":0.0,"budgetScorePercentage":0.0,"brokenRequirements":[{"type":"item.color","scoringLogic":{"method":"Penalize","comparisonLogic":"NotEqual","weight":10,"constraintHardness":"hard","weightRelativePercentage":1.0},"values":["Blue"],"valueType":"string","penalty":10,"penaltyPercentage":0.5},{"type":"purchase.budget.amount","scoringLogic":{"method":"Penalize","comparisonLogic":"GreaterThan","weight":10,"constraintHardness":"hard"},"values":["100.0"],"penalty":10,"penaltyPercentage":0.5}],"exceededRequirements":[],"metRequirements":[]}},{"id":"3","name":"Name 3","descriptors":[{"type":"item.color","value":"Red"},{"type":"item.capability.Plays Roblox","value":"true"},{"type":"item.weight","value":"420"},{"type":"item.storage.capacity","value":"128"}],"cost":200.0,"scoreExplanation":{"overallHardScore":-20,"overallSoftScore":0,"overallScorePercentage":0.0,"overallScorePercentageWithRewards":0.0,"requirementsScorePercentage":0.0,"budgetScorePercentage":0.0,"brokenRequirements":[{"type":"item.color","scoringLogic":{"method":"Penalize","comparisonLogic":"NotEqual","weight":10,"constraintHardness":"hard","weightRelativePercentage":1.0},"values":["Blue"],"valueType":"string","penalty":10,"penaltyPercentage":0.5},{"type":"purchase.budget.amount","scoringLogic":{"method":"Penalize","comparisonLogic":"GreaterThan","weight":10,"constraintHardness":"hard"},"values":["100.0"],"penalty":10,"penaltyPercentage":0.5}],"exceededRequirements":[],"metRequirements":[]}}],"solutionSummary":"Explanation of score (0hard/0soft):\n Constraint match totals:\n Indictments:\n"}]
curl --location --request POST 'https://zylalabs.com/api/5744/decision+optimizer+api/7474/optimize+assignment' --header 'Authorization: Bearer YOUR_API_KEY'
--data-raw '{
"itemAssignments": [
{
"id": "1",
"requirements": [
{
"type": "item.color",
"values": [
"Blue"
],
"valueType": "string",
"scoringLogic": {
"comparisonLogic": "NotEqual",
"method": "Penalize",
"weight": 10,
"constraintHardness": "hard"
}
}
],
"budget": {
"amount": 100,
"weight": 10
}
}
],
"items": [
{
"id": "1",
"name": "Name 1",
"cost": 200,
"descriptors": [
{
"type": "item.color",
"value": "Red"
},
{
"type": "item.capability.Plays Roblox",
"value": "true"
},
{
"type": "item.weight",
"value": "450"
},
{
"type": "item.storage.capacity",
"value": "256"
}
]
},
{
"id": "2",
"name": "Name 2",
"cost": 100,
"descriptors": [
{
"type": "item.color",
"value": "Blue"
},
{
"type": "item.capability.Plays Diablo Immortal",
"value": "true"
},
{
"type": "item.weight",
"value": "675"
},
{
"type": "item.storage.capacity",
"value": "128"
}
]
},
{
"id": "3",
"name": "Name 3",
"cost": 200,
"descriptors": [
{
"type": "item.color",
"value": "Red"
},
{
"type": "item.capability.Plays Roblox",
"value": "true"
},
{
"type": "item.weight",
"value": "420"
},
{
"type": "item.storage.capacity",
"value": "128"
}
]
},
{
"id": "4",
"name": "Name 4",
"cost": 100,
"descriptors": [
{
"type": "item.color",
"value": "Red"
},
{
"type": "item.capability.PLays Minecraft",
"value": "true"
},
{
"type": "item.weight",
"value": "850"
},
{
"type": "item.storage.capacity",
"value": "256"
}
]
}
]
}'
| 标头 | 描述 |
|---|---|
授权
|
[必需] 应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。 |
无长期承诺。随时升级、降级或取消。 免费试用包括最多 50 个请求。
决策优化器API的主要功能是通过将元素映射到具有定制约束的需求来优化复杂决策,最大化结果同时最小化成本
该API具有先进的功能,可以惩罚约束违例,确保优化过程遵循指定的要求和约束
决策优化器API可以应用于多个行业,包括物流金融电子商务等,使其适用于各种分配和优化问题
是的 API 可以根据自定义参数动态调整 使用户能够根据他们的具体需求和要求定制优化过程
组织可以通过将决策优化器API集成到他们的工作流程中来期望最大化收益、最小化成本,并实现更好的资源配置效率
优化分配端点根据提供的元素和分配返回最优解,包括项目分配、得分以及每个项目如何满足指定要求和约束的详细解释
响应中的关键字段包括`itemAssignments`,它详细说明了分配的项目及其要求,`budget`,它显示了分配的金额,以及`scoreExplanation`,它提供了每个任务评分指标的洞见
响应数据结构为一个包含`itemAssignments`和`items`对象的JSON数组。每个对象包括相关属性,如`id`、`requirements`、`budget`和`scoreExplanation`,方便解析和分析
用户可以通过包含诸如“元素”“任务”和特定约束等参数来自定义请求 这些参数允许根据独特的要求和预算考虑进行量身定制的优化
用户可以分析`scoreExplanation`以了解每个项目满足要求的程度识别任何约束违反的处罚并根据总体得分和预算遵循做出明智的决策
典型的使用案例包括在物流中优化资源配置在金融中进行预算管理以及在电子商务中进行库存管理,其中组织需要在最大化效率的同时平衡多个约束
数据准确性通过严格的验证流程在输入和输出期间得以维护,确保优化结果反映基于提供的要求和限制的最准确评估
用户可以期待响应中有一致的结构,包括项目分配列表、相关要求、预算细节和评分标准。这种一致性有助于可预测的数据处理和分析
服务级别:
100%
响应时间:
8,662ms
服务级别:
100%
响应时间:
236ms
服务级别:
100%
响应时间:
472ms
服务级别:
100%
响应时间:
1,130ms
服务级别:
100%
响应时间:
1,563ms
服务级别:
100%
响应时间:
798ms
服务级别:
100%
响应时间:
3,110ms
服务级别:
100%
响应时间:
9,164ms
服务级别:
100%
响应时间:
3,566ms
服务级别:
100%
响应时间:
953ms
服务级别:
100%
响应时间:
7,797ms
服务级别:
80%
响应时间:
574ms
服务级别:
100%
响应时间:
615ms
服务级别:
100%
响应时间:
584ms
服务级别:
100%
响应时间:
149ms
服务级别:
100%
响应时间:
311ms
服务级别:
100%
响应时间:
633ms
服务级别:
100%
响应时间:
669ms
服务级别:
100%
响应时间:
159ms
服务级别:
100%
响应时间:
595ms