summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNao Pross <np@0hm.ch>2023-11-16 22:34:01 +0100
committerNao Pross <np@0hm.ch>2023-11-16 22:34:01 +0100
commitebdeea55438db5da1f27824e084f1a21534f853b (patch)
treed95054e7d0c4b581be62d02db04abd7f5fe2b387 /src
parentFix bug when uptolevel is None (diff)
parentmisc (diff)
downloadact4e-ebdeea55438db5da1f27824e084f1a21534f853b.tar.gz
act4e-ebdeea55438db5da1f27824e084f1a21534f853b.zip
Merge remote-tracking branch 'template/alphubel-prod' into alphubel-prod
Diffstat (limited to '')
-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