matsim-org / matsim-code-examples

A repository containing code examples around MATSim
GNU General Public License v3.0
85 stars 180 forks source link

EV_module- vehicle not going for charging. #293

Open prvnpandey opened 4 years ago

prvnpandey commented 4 years ago

I have tested the EV example and it is working fine. when I am trying to model my test scenario then vehicles are not going for charging even the SOC becomes 0. why this happening so, is something I am missing to tell the controller.

1 individual_soc_time_profiles_Line 1 average_soc_time_profiles_Line 1 charger_occupancy_time_profiles_Line @jfbischoff @michalmac

tschlenther commented 4 years ago

I guess that, at the moment, we do not have any charging behaviour logic for urban scenarios. We will do something about this, soon. That means, agents will anticipate the leg during which the SOC falls under a critical level and put a charging activity in their plan before that. I guess that until we have done that, you will have to deal with the current state. Even after that, it will still be technically possible that vehicles run out of energy but keep going..

michalmac commented 4 years ago

Which example is that? E-taxi, E-drt or something else?

prvnpandey commented 4 years ago

first, I run the RunEvExample and checked the result produced by example when I am running the example provided in the folder ev/example it running perfect and the vehicle is going for charging while going from a to b. I just replaced plans and network and tried to run the scenario for testing but the vehicle is not going for charging even SOC becomes zero. @michalmac

prvnpandey commented 4 years ago

The vehicle is not going for charging when they have a series of legs. EV example is working fine, with only one leg why it so and how to proceed by including multiple legs of agents plan for ev simulation.

Is something I am missing please guide me in the right way. Thanks and Regards @michalmac @jfbischoff

mattjweist commented 3 years ago

@prvnpandey Hi Praveen, Were you ever able to come up with a solution to this? My output graphs look very similar. The vehicles go to the charging stations and wait for some arbitrary amount of time, but the state of charge does not go back up. Thanks, Matt

prvnpandey commented 3 years ago

@mattjweist Yes because in logic and for routing instead of comparing soc each time the battery cap has been compared whenever agent starts their leg, this is written like this because this library is developed for a long haul trip. If you find your way to deal with this, I think it will work for you.

Regards Praveen

tschlenther commented 3 years ago

We are currently working on an urban charging behavioral model, as mentioned above and are finally making progress (unfortunately were distracted by other things such as corona modeling...). In a reasonable amount of time this should be available for users.