Finopswerk
finite convex risk infimal convolution
Solve ONE two-agent finite convex monetary risk-sharing problem from ORIGINAL total payoff X and each agents probability stress rows q with nonnegative penalties a: rho_i(Y)=max_j(-q_ij.Y-a_ij). Compute inf_H[rho_A(X-H)+rho_B(H)] and an ACTUAL optimal state-contingent transfer H, individual capital, baseline capital and saving. Return common optimal dual probability, each agents convex mixture weights and convexified penalty, exact zero primal-dual gap. Not merely evaluate supplied.
POST https://finops.halowerk.com/v1/finite-convex-risk-infimal-convolutionInputs
| Field | Type | Required | Description |
|---|---|---|---|
| total_payoff_n | array | Yes | |
| amount_denominator | integer | Yes | |
| agent_a | array | Yes | |
| agent_b | array | Yes |
Show full input schema
{
"type": "object",
"properties": {
"total_payoff_n": {
"type": "array",
"minItems": 2,
"maxItems": 4,
"items": {
"anyOf": [
{
"type": "integer",
"minimum": -100,
"maximum": 100
},
{
"type": "null"
}
]
}
},
"amount_denominator": {
"type": "integer",
"minimum": 1,
"maximum": 100
},
"agent_a": {
"type": "array",
"minItems": 1,
"maxItems": 4,
"items": {
"type": "object",
"properties": {
"probability_n": {
"type": "array",
"minItems": 2,
"maxItems": 4,
"items": {
"type": "integer",
"minimum": 0,
"maximum": 100
}
},
"probability_denominator": {
"type": "integer",
"minimum": 1,
"maximum": 100
},
"penalty_n": {
"type": "integer",
"minimum": 0,
"maximum": 100
}
},
"required": [
"probability_n",
"probability_denominator",
"penalty_n"
],
"additionalProperties": false
}
},
"agent_b": {
"type": "array",
"minItems": 1,
"maxItems": 4,
"items": {
"type": "object",
"properties": {
"probability_n": {
"type": "array",
"minItems": 2,
"maxItems": 4,
"items": {
"type": "integer",
"minimum": 0,
"maximum": 100
}
},
"probability_denominator": {
"type": "integer",
"minimum": 1,
"maximum": 100
},
"penalty_n": {
"type": "integer",
"minimum": 0,
"maximum": 100
}
},
"required": [
"probability_n",
"probability_denominator",
"penalty_n"
],
"additionalProperties": false
}
}
},
"required": [
"total_payoff_n",
"amount_denominator",
"agent_a",
"agent_b"
],
"additionalProperties": false
}Published input example
{
"total_payoff_n": [
-10,
-6,
8
],
"amount_denominator": 1,
"agent_a": [
{
"probability_n": [
1,
0,
0
],
"probability_denominator": 1,
"penalty_n": 0
},
{
"probability_n": [
0,
1,
0
],
"probability_denominator": 1,
"penalty_n": 0
},
{
"probability_n": [
0,
0,
1
],
"probability_denominator": 1,
"penalty_n": 0
}
],
"agent_b": [
{
"probability_n": [
1,
1,
0
],
"probability_denominator": 2,
"penalty_n": 1
},
{
"probability_n": [
0,
1,
1
],
"probability_denominator": 2,
"penalty_n": 0
},
{
"probability_n": [
1,
0,
1
],
"probability_denominator": 2,
"penalty_n": 0
}
]
}Result & documentation
Machine-readable documentation of this hub
Source of this page: the published HALOWERK catalog. Updated: 2026-11-17 UTC.
More endpoints in this hub
- Finopswerk0.003 USDC
accumulating sick leave liability
POSThttps://finops.halowerk.com/v1/accumulating-sick-leave-liabilityMeasures one closing salary-only liability for non-vesting accumulating sick leave. For N identical employees with unused old carry C and next-year entitlement E (used first), the caller supplies three scenarios of future absence days a_j w
- Finopswerk0.003 USDC
acquisition goodwill nci bridge
POSThttps://finops.halowerk.com/v1/acquisition-goodwill-nci-bridgeReconstructs one acquisition-date business-combination goodwill/NCI bridge from caller-measured identified assets, assumed liabilities, cash and non-cash consideration and previously held interest. NCI mode 0 = proportionate identifiable ne
- Finopswerk0.003 USDC
adjusted coupon cashflow ledger
POSThttps://finops.halowerk.com/v1/adjusted-coupon-cashflow-ledgerFrom a civil start date, tenor, EOM, principal, rate and explicit calendars, derives unadjusted accrual anchors, Following/ModifiedFollowing/Preceding payment dates, ACT365F exact interest and the last principal redemption. Payment adjustme