Hi Dinesh
Generically speaking, I think you can take the following approach:
Have a clear idea of what variables are being manipulated in your TE algorithm. I expect these variables to represent some components of the network whose behavior you want to improve.
If you already have (as you mentioned) a simulation model of the network, you already have a 'virtual' representation of both their components and behavior. Then you have to find out how these components and behavior are coded in C++ variables and methods, in particular those that are supposed to be manipulated by your TE algorithm. Knowing this, you also know where to act (recode!) in order to implement the new behavior.
For the last part maybe you should work 'near' the developers of your model (unless you have the programming skills to change it)
Hope this helps
-Alvaro-