Skip to main content

How to copy a model in c++

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.
  • Matthias Miltenberger
    • Gurobi Staff

    Hi Kechen,

    To copy a model in C++, you have to use the GRBModel constructor and pass the existing model as a parameter. This is explained here: GRBModel().

    I hope that helps!

    Cheers,
    Matthias

    0
  • Kechen Ouyang
    • Gurobi-versary
    • First Comment
    • First Question

    It helped! Thank you!

    0

Post is closed for comments.