fts-solver 0.5.1

A reference solver for flow trading optimization
Documentation
{
    "demand_curves": {
        "buyerx": [
            {
                "rate": 0.0,
                "price": 10.0
            },
            {
                "rate": 1.0,
                "price": 5.0
            }
        ],
        "buyery": [
            {
                "rate": 0.0,
                "price": 10.0
            },
            {
                "rate": 1.0,
                "price": 5.0
            }
        ],
        "buyerxy": [
            {
                "rate": 0.0,
                "price": 0.0
            },
            {
                "rate": 1.0,
                "price": 0.0
            }
        ],
        "sellerx": [
            {
                "rate": -1.0,
                "price": 6.25
            },
            {
                "rate": 0.0,
                "price": 6.25
            }
        ],
        "sellery": [
            {
                "rate": -1.0,
                "price": 6.25
            },
            {
                "rate": 0.0,
                "price": 6.25
            }
        ]
    },
    "portfolios": {
        "buyerx": {
            "demand_group": [
                "buyerx",
                "buyerxy"
            ],
            "product_group": "A"
        },
        "buyery": {
            "demand_group": [
                "buyery",
                "buyerxy"
            ],
            "product_group": "B"
        },
        "sellerx": {
            "demand_group": "sellerx",
            "product_group": "A"
        },
        "sellery": {
            "demand_group": "sellery",
            "product_group": "B"
        }
    }
}