Thank you Patrick

Best Regards
André

2015-03-10 16:33 GMT+00:00 Eser Patrick <[email protected]>:

>  Hi Andre,
>
>  Have you tried the “totcost” function? It gives you the cost of
> generation for each individual generator as a function of the current power
> output and your supplied generator cost matrix.
>
>  Example:
>
>  result = runopf(mpc,mpopt);
> mycostvector = totcost(mpc.gencost, result.gen(:,PG));
> costofgenerator17 = mycostvector(17);
>
>  Hope that helps. There is an explanation of “totcost” in the MATPOWER
> manual, section 9.2.9.
>
>  Best Regards,
>
>  Patrick
>
>   From: André Santos <[email protected]>
> Reply-To: MATPOWER discussion forum <[email protected]>
> Date: Tuesday 10 March 2015 17:17
> To: "[email protected]" <[email protected]>
> Subject: Access to generation cost
>
>   Hi all
>
>  I'm working with runopf function and i need to access to individual
> generation cost.
> I tried to open f_fcn() inside mips() line 326 and do not exist. There is
> any other way to access to individual generation cost?
>
>  Thank you so much
>
>  Best Regards
> André Santos
>

Reply via email to