Our first model
It's time to create our first model!
- First of all, we need to import class
Model
. - Now, we can make our own model class, say
DemoModel
. - Finally, we can create an instance of this class and run it.
from dvrpsim import Model
class DemoModel(Model):
def __init__(self) -> None:
super().__init__()
if __name__ == '__main__':
model = DemoModel()
model.run()
However, do not expect an interesting result...
So, let's add some orders to the model!