Grasshopper I beam modelling

Hi,

I am trying to do a school project using grasshopper.
Since all I beam sections are defined in Karamba, I don’t know how can I vary the flange thickness along the length of the beam (for optimization).

I have attached a simple drawing to present my idea.
Capture