Skip to main content

See algebraic expressions of problem in debug mode or print

Answered

Comments

2 comments

  • Simranjit Kaur
    Gurobi Staff 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
    First Comment
    First Question

    Dear Simran,

    thanks for the message! This files solves my issue

    Best,

    Paul

    0

Please sign in to leave a comment.