Commit f0cceab6 authored by Tjerk Vreeken's avatar Tjerk Vreeken

Do not cache test models

parent 64d3fa62
......@@ -76,6 +76,11 @@ class TestProblem(ControlTreeMixin, ModelicaMixin, CollocatedIntegratedOptimizat
# Do
pass
def compiler_options(self):
compiler_options = super().compiler_options()
compiler_options['cache'] = False
return compiler_options
class TestControlTreeMixin1(TestCase):
@property
......@@ -200,6 +205,11 @@ class TestProblemDijkverruiming(ControlTreeMixin, ModelicaMixin, CollocatedInteg
# Do
pass
def compiler_options(self):
compiler_options = super().compiler_options()
compiler_options['cache'] = False
return compiler_options
class TestDijkverruiming(TestCase):
def setUp(self):
......
......@@ -40,6 +40,11 @@ class TestProblem(CSVMixin, ModelicaMixin, CollocatedIntegratedOptimizationProbl
# No additional constraints
return []
def compiler_options(self):
compiler_options = super().compiler_options()
compiler_options['cache'] = False
return compiler_options
class TestProblemLookup(CSVLookupTableMixin, TestProblem):
......
......@@ -48,6 +48,11 @@ class TestProblem(GoalProgrammingMixin, ModelicaMixin, CollocatedIntegratedOptim
# Do nothing
pass
def compiler_options(self):
compiler_options = super().compiler_options()
compiler_options['cache'] = False
return compiler_options
class TestGoal1(Goal):
......@@ -266,6 +271,11 @@ class TestProblemPathGoals(GoalProgrammingMixin, ModelicaMixin, CollocatedIntegr
def path_goals(self):
return [PathGoal1(), PathGoal2(), PathGoal3(), PathGoal4(), PathGoal5()]
def compiler_options(self):
compiler_options = super().compiler_options()
compiler_options['cache'] = False
return compiler_options
class TestGoalProgrammingPathGoals(TestCase):
......@@ -438,6 +448,12 @@ class TestProblemPathGoalsSmoothing(GoalProgrammingMixin, ModelicaMixin, Colloca
return [PathGoal1(), PathGoal2(), PathGoalSmoothing()]
def compiler_options(self):
compiler_options = super().compiler_options()
compiler_options['cache'] = False
return compiler_options
class TestGoalProgrammingSmoothing(TestCase):
def setUp(self):
......@@ -506,6 +522,11 @@ class TestProblemStateGoals(GoalProgrammingMixin, ModelicaMixin, CollocatedInteg
# Do nothing
pass
def compiler_options(self):
compiler_options = super().compiler_options()
compiler_options['cache'] = False
return compiler_options
class TestGoalProgrammingStateGoals(TestCase):
......
......@@ -56,6 +56,11 @@ class HybridShootingTestProblem(ModelicaMixin, CollocatedIntegratedOptimizationP
# Do
pass
def compiler_options(self):
compiler_options = super().compiler_options()
compiler_options['cache'] = False
return compiler_options
class TestHybridShooting(TestCase):
......
......@@ -58,6 +58,11 @@ class TestProblem(ModelicaMixin, CollocatedIntegratedOptimizationProblem):
# Do
pass
def compiler_options(self):
compiler_options = super().compiler_options()
compiler_options['cache'] = False
return compiler_options
class TestProblemNonConvex(TestProblem):
......@@ -164,6 +169,11 @@ class TestProblemAlgebraic(ModelicaMixin, CollocatedIntegratedOptimizationProble
# Do
pass
def compiler_options(self):
compiler_options = super().compiler_options()
compiler_options['cache'] = False
return compiler_options
class TestProblemMixedInteger(ModelicaMixin, CollocatedIntegratedOptimizationProblem):
......@@ -194,6 +204,11 @@ class TestProblemMixedInteger(ModelicaMixin, CollocatedIntegratedOptimizationPro
# Do
pass
def compiler_options(self):
compiler_options = super().compiler_options()
compiler_options['cache'] = False
return compiler_options
class TestModelicaMixin(TestCase):
......
......@@ -38,6 +38,11 @@ class TestProblem(PIMixin, ModelicaMixin, CollocatedIntegratedOptimizationProble
# No additional constraints
return []
def compiler_options(self):
compiler_options = super().compiler_options()
compiler_options['cache'] = False
return compiler_options
class TestPIMixin(TestCase):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment