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

Two Piecewise linear approximation methods has huge performance difference

回答済み

コメント

4件のコメント

  • 正式なコメント
    Simranjit Kaur
    • Gurobi Staff
    This post is more than three years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum. Or why not try our AI Gurobot?.
  • Jaromił Najman
    • Gurobi Staff

    Hi,

    Could you elaborate more on the approach you are using? In particular, could you be more precise in the description of which function you are trying to approximate in what way?

    Did you try Gurobi's piecewise linear feature? You can model 2D function as described in the Knowledge Base article How do I model a piecewise-linear function of more than one variable?

    When sharing files, could you use one of the services mentioned in Posting to the Community Forum?

    Best regards,
    Jaromił

    1
  • Yize Meng
    • Gurobi-versary
    • First Comment
    • First Question

    Hi Jaromil,

    Thank you very much for your answer, which is really helpful. I realize that my two modeling techniques are just the same as pointed out in the article https://support.gurobi.com/hc/en-us/articles/360039677232-How-do-I-model-a-piecewise-linear-function-of-more-than-one-variable- . In my numerical case it turns out that the alternative way mentioned in the last paragragh of the article outperforms the other way dramatically. It is unexpected.

    0
  • Jaromił Najman
    • Gurobi Staff

    Hi Yize,

    In my numerical case it turns out that the alternative way mentioned in the last paragragh of the article outperforms the other way dramatically. It is unexpected.

    Note that just reducing the number of variables may not be sufficient to improve performance of the optimization. By introducing additional variables, the solver has more possibilities to work with. In particular, it may detect some structure or dependency which it does not see in the smaller formulation. In general, it is very hard to say a priori if a different formulation will perform better or not.

    Best regards,
    Jaromił

    0

投稿コメントは受け付けていません。