flo-schu / pymob

Python model building platform
MIT License
0 stars 0 forks source link

Use the `Evaluator` class only to construct the function call or even to validate it only #36

Open flo-schu opened 3 months ago

flo-schu commented 3 months ago

The reason is that with passing through of important arguments the overhead of instantiating it again and again is not necessary. The challenge is how to dynamically call it with different arguments.

🛑 This should be carefully thought through.

flo-schu commented 1 week ago

This issue came up again, when implementing a more versatile solver. The solver is slow, because it repretitively executes the same code again and again.

This can be drastically improved by outsourcing the repetitive tasks to the evaluator, which is, on top, of that only instantiated once.

The Evaluator