dkouzoup / ms-eetc Goto Github PK
View Code? Open in Web Editor NEWMultiple shooting for computationally efficient train trajectory optimization
License: BSD 2-Clause "Simplified" License
Multiple shooting for computationally efficient train trajectory optimization
License: BSD 2-Clause "Simplified" License
I am not sure if this is a bug or just something that is really not obvious, but I have encountered some issues in modifying the simulation for figure5.
In what follows, I only talk about computations with static efficiency.
When running figure5.py, it appears that the static efficiencies \eta^{tr} and \eta^{rb} both concide and are specified by the variable etaMax
on line 94 with value 0.73. I wanted to change it to the pair of efficiencies \eta^{tr} = 0.875 and \eta^{rb} = 0.7 found in the train model file NL_Intercity_VIRM6.json.
So what I did is that in line 97 (definition of fun1
), I have changed the values of etaMax
to two literals, e.g. fun1 = lambda f,v: f*v*(f>0)*(1 - 0.875)/0.875 - (1-0.7)*f*v*(f<0)
, where essentially \eta^{tr} = 0.875 and \eta^{rb} = 0.7. Strangely enough, on the generated plots, the consumption values were exactly the same in almost all runs. In the following I provide an enumeration of these results:
These show that the consumptions are barely sensitive to the change in efficiency. However if I comment out line 134, thus forcing the program to use the line powerLosses = lambda f,v: f*v*(f>0)*(1 - self.etaTraction)/self.etaTraction - (1-self.etaRgBrake)*f*v*(f<0)
(line 203 in train.py) to define the power losses (i.e. the \eta^{tr} and \eta^{rb} from the train model file), then the consumptions become
There is either a bug here or I severely misunderstand how the program processes static efficiencies. How can I run figure5.py while configuring arbitrary etaTraction and eta RgBrake?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.