Introduction - If you have any usage issues, please Google them yourself
Consider unit 1 and unit 2 are thermal power plants and the third unit is hydro power plant, and consider power loss.
Note: Regarding the transmission loss consider quadratic function taking the generating values as variable