summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrea Censi <AndreaCensi@users.noreply.github.com>2023-11-01 10:24:43 +0100
committerAndrea Censi <AndreaCensi@users.noreply.github.com>2023-11-01 10:24:43 +0100
commitc073cf4d57a81a86a9f34356a11519cfddd65eb1 (patch)
tree74c4c94ab7cb314ba464ad83a9de87e06a9b8847
parentmisc (diff)
downloadact4e-c073cf4d57a81a86a9f34356a11519cfddd65eb1.tar.gz
act4e-c073cf4d57a81a86a9f34356a11519cfddd65eb1.zip
misc
-rw-r--r--src/act4e_solutions/currency_ex.py12
1 files changed, 12 insertions, 0 deletions
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