メインコンテンツへスキップ

Enegy Storage Arbitrage - Penalty function or Linearization

回答済み

コメント

1件のコメント

  • Jaromił Najman
    • Gurobi Staff

    Hi Viktor,

    You could use general constraints to model your nonlinear function. However, given the complexity of your function, I would recommend trying a manual piecewise-linear approximation. You can use the addGenConstrPWL() method for this. An example of how to compute a piecewise-linear approximation is given in the gc_pwl_func.py example.

    Best regards, 
    Jaromił

    0

サインインしてコメントを残してください。