From c073cf4d57a81a86a9f34356a11519cfddd65eb1 Mon Sep 17 00:00:00 2001 From: Andrea Censi Date: Wed, 1 Nov 2023 10:24:43 +0100 Subject: misc --- src/act4e_solutions/currency_ex.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/act4e_solutions/currency_ex.py (limited to 'src') diff --git a/src/act4e_solutions/currency_ex.py b/src/act4e_solutions/currency_ex.py new file mode 100644 index 0000000..c0b6b1b --- /dev/null +++ b/src/act4e_solutions/currency_ex.py @@ -0,0 +1,12 @@ +import act4e_interfaces as I + + +class SolCurrencyOptimization(I.CurrencyOptimization): + def compute_optimal_conversion( + self, + available: I.SemiCategory[I.RichObject[str], I.RichMorphism[I.CurrencyExchanger]], + source: str, + amount: float, + target: str, + ) -> I.OptimalSolution: + pass -- cgit v1.2.1