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

See algebraic expressions of problem in debug mode or print

回答済み

コメント

3件のコメント

  • 正式なコメント
    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.
  • Simranjit Kaur
    • Gurobi Staff

    Hi Paul,

    You can export the model in an LP file format using model.write("mymodel.lp") just before the optimize command. The LP file format provides a readable representation of the optimization model, including the objective function, constraints, and variable bounds. For your example model, the LP file will contain:

    \ Model quadratic_constraint_problem
    \ LP format - for model browsing. Use MPS format to capture full model detail.
    Minimize
      x1 + 2 x2
    Subject To
     quad_constr: [ 2 x1 ^2 + 2 x1 * x2 + 2 x2 ^2 ] <= 1
    Bounds
    End  

    Best regards,
    Simran

    0
  • Paul-Niklas Kandora
    • Gurobi-versary
    • First Comment
    • First Question

    Dear Simran,

    thanks for the message! This files solves my issue

    Best,

    Paul

    0

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