Professional Documents
Culture Documents
MODULE
RECRUITMENT’24
agnirath.iitm
Controls?
A tangent into another really important paradigm
Some Math
Just some background math to understand how your
model works.
Objective Function
Define what parameter you want to maximise or minimise.
This could be time, distance travelled, energy saved,
minimising acceleration or whatever you want. Be creative,
but at the same time be realistic. It is required to mention
your rationale too, for whatever choice you make.
Constraints
What constraints are you taking into consideration? How do
you want to frame these constraints? List your assumptions,
and rationale behind them at the top, and list down your
constraints mathematically.
Decision Variables
Define what variables you can control. List down how you will
implement this control effectively.
Optimisation type
For this question, mention the common optimisation types
used, and an overview on them at the start of your answer.
Then, list down what techniques you will use to find the
optimal function. There are a couple of real world
considerations to take into consideration. Keep this in mind,
and try to list them in your answer.
Input:
Explain what inputs your model will require. Keep in mind
that the model could be both predictive and live. Explain why
we need either model, explain how if you were to implement
both models, how would you use the data. Detail your
abstraction, in the sense assume what inputs you’ll get.
Output
Come up with ways to implement controls and how to
visualize the data, learn from it and understand. Give a
detailed description of each idea.
CONTROLS?
Introduction
One popular paradigm is writing the objective function, and
then doing gradient descent or some kind of optimization
right. How is the controls paradigm different from this?
Equations
How would you convert the equations you have written about
to a controls based equation? I need at least one example on
this conversion.
Coupled equations
What are coupled equations? How do you uncouple them?
Solving
How are controls based equations solved?
Drawbacks
What are the drawbacks of a controls based approach? What
are the benefits it offers?
SOME MATH?
Lagrangian
Explain what a Lagrangian is? When can a Lagrangian of a
function be defined?
Gradient Descent
Explain how the gradient descent method works. I want you
to list down the various steps in the algorithm, and give an
idea of why it works. Finally, I want you to show me how the
Adam optimiser works.
Differential Equations
What is the order and degree of a differential equation?
Explain how you construct a set of adjoint equations to
reduce the order of a differential equation.
Explain 2-3 method to numerically solve a differential
equation. Psst psst Runge Kutta
Inputs
Based on whatever you have answered above, you would have
gotten an idea of what inputs you need and in what range
they fall in. Generate randomly, a medium sized dataset
consisting of these inputs.
Outputs
Give various charts and takeaways from your model. Suggest
an optimal strategy based on the controls you have defined.
The velocity profile is the strategy,
Some Points:
The model should run in a reasonable amount of time (5-10
mins) for a medium sized dataset. Some kind of visualization
along with the velocity profile should be presented as the
output. Try to break your model into various interacting
modules as I have split in the application. Try to comment your
code, so that I can understand what you have done.
Model type
For this exercise, it suffices to do a predictive model (assuming
you have no live data). Try to implement a gradient descent
algorithm for this model.
References:
Optimal energy management for solar-powered cars -
Peter Pudney
Winning solar
Gradient descent reference:
https://towardsdatascience.com/gradient-descent-
algorithm-a-deep-dive-cf04e8115f21
Stochastic gradient descent:
https://scikit-
learn.org/stable/modules/sgd.html#:~:text=Stochastic%
20gradient%20descent%20is%20an,training%20example
%20at%20a%20time.
Lagrangian and Hamiltonian reference
https://scholar.harvard.edu/files/david-
morin/files/cmchap6.pdf
Something for data collection ideas
https://solarcar.mst.edu/wp-
content/uploads/sites/14/2019/03/Cureton_et_al_2015061
9.pdf
General
https://www.20sim.com/downloads/Factsheets/Factshee
t-Solar-Team.pdf