Skip to main content

Writing solution pool after relaxation to .sol file in MATLAB

Answered

Comments

3 comments

  • Official comment
    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 try Gurobot, our chatbot interface offering instant, expert-level support.
  • Suyue Xu
    • Gurobi-versary
    • Curious
    • Conversationalist

    struct relaxresult are as follows:

              status: 'OPTIMAL'
         versioninfo: [1×1 struct]
             runtime: 10.6599
                work: 13.3870
              objval: -1.0790e+10
                   x: [159080×1 double]
               slack: [130855×1 double]
        poolobjbound: -1.0790e+10
                pool: [1×2 struct]
              mipgap: 3.2494e-09
            objbound: -1.0790e+10
           objboundc: -1.0790e+10
           itercount: 60821
        baritercount: 0
           nodecount: 119
              maxvio: 9.6893e-06

    0
  • Jaromił Najman
    • Gurobi Staff

    Hi Xu,

    Please note that you cannot use the \(\texttt{gurobi_write}\) function in MATLAB to write solution files. You could set the SolFiles parameter as discussed in Writing solutions pool to .sol file.

    A different way of accessing solution values in a pool is shown in the poolsearch.m example.

    Best regards, 
    Jaromił

    0

Post is closed for comments.