You can do it simply by setting the gencost appropriately. For example, you can use a negative marginal cost on your renewable units. For example, a cost of -$10/MW means the unit would need to be paid $10 for every megawatt of curtailment.
Ray On Nov 20, 2022, at 10:00 PM, seuyxw <seuw...@163.com<mailto:seuw...@163.com>> wrote: Dear all, Now I have some wind farms and PVs in my problem. I know their maximum power output and the cost of curtailment. I want to minimize the curtailment of those renewable sources to maintain the system's security. That's to say, I want to utilize as much renewable energy as possible. Does anyone know how to model this objective in the AC OPF program? Any help is appreciated. Thank you in advance, Yuanxi Wu