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

how to rislove this, min flow but with linear function in 3 pieces

ユーザーの入力を待っています。

コメント

2件のコメント

  • 正式なコメント
    Simranjit Kaur
    • Gurobi Staff
    This post is more than two 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 try Gurobot, our chatbot interface offering instant, expert-level support.
  • Robert Fourer
    • Gurobi-versary
    • Collaborator

    AMPL accepts this model without any errors. It is OK to write the objective as the sum of three variables, each of which equals a different expression. The expression for f2[i,j] has a product of 3 variables -- pezzo_2[i,j], vbk[i,j,k], and x[i,j] -- but AMPL's interface to Gurobi offers the option of converting that to an equivalent quadratic formulation, which Gurobi can handle if you add nonconvex=2 to your gurobi_options string.

    Do you have any problems when you add some data and attempt to solve the resulting problem? If you need help that might be related to AMPL, you can post a question on the AMPL forum at https://discuss.ampl.com.

    0

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