Loading...
Searching...
No Matches
py_solver.cpp
Go to the documentation of this file.
#include "gridfire/solver/solver.h"
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#include <pybind11/functional.h> // Needed for std::function
#include <vector>
#include "py_solver.h"
namespace py = pybind11;
gridfire::NetOut PyDynamicNetworkSolverStrategy::evaluate(const gridfire::NetIn &netIn) {
PYBIND11_OVERRIDE_PURE(
gridfire::NetOut, // Return type
gridfire::solver::DynamicNetworkSolverStrategy, // Base class
evaluate, // Method name
netIn // Arguments
);
}
PyDynamicNetworkSolverStrategy::evaluate
gridfire::NetOut evaluate(const gridfire::NetIn &netIn) override
Evaluates the network for a given timestep.
Definition py_solver.cpp:14
gridfire::solver::DynamicNetworkSolverStrategy
NetworkSolverStrategy< DynamicEngine > DynamicNetworkSolverStrategy
Type alias for a network solver strategy that uses a DynamicEngine.
Definition solver.h:53
py_solver.h
solver.h
gridfire::NetIn
Definition network.h:53
gridfire::NetOut
Definition network.h:65