![]() ![]() ( p_MCP, sigdigits = 5 )) ? ( "prices are identical" ) : ( "prices differ (which can be ok as long as primal and dual objective are identical)" ) ![]() ( g_MCP, sigdigits = 5 )) ? ( "gen are identical" ) : ( "something is wrong with generation" ) all ( round. = y_MCP ) ? ( "capacities are identical" ) : ( "something is wrong" ) all ( round. Optimizer ) # Variables ( pm, g >= 0 ) # generation decision ( pm, y >= 0 ) # investment decision ( pm, mu >= 0 ) # dual of capacity constraint ( pm, p ) # price free # complementarity: primal constraints ⟂ dual variables ( pm, dem, - sum ( g for i in 1 : NI ) + d ⟂ p ) ( pm, d_cap, y - g ⟂ mu ) # stationary: δLagrangian/δdecision variable = 0 ( pm, stat1, OPEX + mu - p ⟂ g ) ( pm, stat2, CAPEX - sum ( mu for t in 1 : NT ) ⟂ y ) optimize! ( pm ) y_MCP = value. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
June 2023
Categories |