You can do this by placing a dummy generator at the bus of interest and using a 
very large negative (to maximize the injection) or positive (to minimize the 
injection) generation cost. You can either zero out all other costs, or simply 
make the magnitude of the cost large enough to dominate all other costs.

    Ray


> On Oct 5, 2023, at 8:48 PM, Ronald Cabaoig <rrcaba...@up.edu.ph> wrote:
> 
> Dear MATPOWER team,
> 
> Greetings!
> 
> In the current MATPOWER version, is it possible to reformulate the objective 
> function to find the maximum positive (and negative) power injection in a 
> certain bus:
> 
> Maximize the positive power injection in bus X (or could also be: minimize 
> the negative power injection in bus X)
> Subject to the AC power flow equations, branch flow limits, generator output 
> limits, voltage limits.
> 
> The main decision variable in this case would be the power injection in bus 
> X. Other values that could vary are the generator outputs, voltages, and the 
> like (all subject to the constraints).
> 
> Cheers,
> Ronald



Reply via email to