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

How to fix variables of the presolved model and get the solution of original model ?

回答済み

コメント

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.
  • Eli Towle
    • Gurobi Staff

    The mapping between the original model and the presolved model is not exposed. We don't recommend working on the presolved model, because in general there's no way to recover a solution to the original model. Additionally, the variables you're interested in fixing may not even be present in the presolved model.

    Some alternative ideas:

    • Convert your model to a multi-scenario model, where you define a new scenario for each set of variable fixings. When solving a multi-scenario model, Gurobi performs a single presolve step, then attempts to find optimal solutions for all scenarios.
    • Limit the amount of time Gurobi spends in presolve by modifying the PrePasses/Presolve parameters.
    0

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