From c6d4e430a22163e128c65518d5166ef35683aa52 Mon Sep 17 00:00:00 2001 From: Fernando Posada Date: Tue, 25 Nov 2014 17:30:39 +0100 Subject: [PATCH] Optimization interface added. --- interfaces/optimization.py | 14 ++++++++++++++ tests/test_optimization.py | 5 +++++ 2 files changed, 19 insertions(+) create mode 100644 interfaces/optimization.py create mode 100644 tests/test_optimization.py diff --git a/interfaces/optimization.py b/interfaces/optimization.py new file mode 100644 index 0000000..0c39e93 --- /dev/null +++ b/interfaces/optimization.py @@ -0,0 +1,14 @@ +import numpy as np + +class Optimization: + """ + An abstract optimization tool, taking an EquationOfMotion, + computing a CostFunction associated to it, imposing a + ConstraintEquation on it, and optimizing the Shape evolution, in + order to obtain a Shape that satisfies the ConstraintEquation + and minimizes the CostFunction + """ + def __init__(self): + pass + + \ No newline at end of file diff --git a/tests/test_optimization.py b/tests/test_optimization.py new file mode 100644 index 0000000..a505736 --- /dev/null +++ b/tests/test_optimization.py @@ -0,0 +1,5 @@ +from interfaces.optimization import * + +def test_optimization_interface(): + pass +