<oembed><type>rich</type><version>1.0</version><author_name>npub1aslmpzentw224n3s6yccru4dq2qdlx7rfudfnqevfck637cjt6esswfqmx</author_name><author_url>https://nostr.ae/npub1aslmpzentw224n3s6yccru4dq2qdlx7rfudfnqevfck637cjt6esswfqmx</author_url><provider_name>njump</provider_name><provider_url>https://nostr.ae</provider_url><html>📅 Original date posted:2021-11-15&#xA;📝 Original message:&#xA;In Lightning pathfinding the two main variables to optimize for are routing&#xA;fee and reliability. Routing fee is concrete. It is the sat amount that is&#xA;paid when a payment succeeds. Reliability is a property of a route that can&#xA;be expressed as a probability. The probability that a route will be&#xA;successful.&#xA;&#xA;During pathfinding, route options are compared against each other. So for&#xA;example:&#xA;&#xA;Route A: fee 10 sat, success probability 50%&#xA;Route B: fee 20 sat, success probability 80%&#xA;&#xA;Which one is the better route? That depends on user preference. A patient&#xA;user will probably go for route A in the hope of saving on fees whereas for&#xA;a time-sensitive payment route B looks better.&#xA;&#xA;It would be great to offer this trade-off to the user in a simple way.&#xA;Preferably a single [0, 1] value that controls the selection process. At 0,&#xA;the route is only optimized for fees and probabilities are ignored&#xA;completely. At 1, the route is only optimized for reliability and fees are&#xA;ignored completely.&#xA;&#xA;But how to choose between the routes A and B for a value somewhere in&#xA;between 0 and 1? For example 0.5 - perfect balance between reliability and&#xA;fee. But what does that mean exactly?&#xA;&#xA;Anyone got an idea on how to approach this best? I am looking for a simple&#xA;formula to decide between routes, preferably with a reasonably sound&#xA;probability-theoretical basis (whatever that means).&#xA;&#xA;Joost&#xA;-------------- next part --------------&#xA;An HTML attachment was scrubbed...&#xA;URL: &lt;http://lists.linuxfoundation.org/pipermail/lightning-dev/attachments/20211115/fffa5edd/attachment.html&gt;</html></oembed>