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

Return the solution for each iteration using Primal or Dual Simplex

回答済み

コメント

4件のコメント

  • 正式なコメント
    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 why not try our AI Gurobot?.
  • Jaromił Najman
    • Gurobi Staff

    Hi Greg,

    There is no way of getting the solution point of each iteration. You can get the objective value at each iteration via the callback SPX_OBJVAL.

    Best regards,
    Jaromił

    1
  • Greg
    • Gurobi-versary
    • First Comment
    • First Question

    Thank you Jaromił for your prompt reply.

    May I ask if it is possible to use the callback SPX_OBJVAL from Matlab? I have not found something similar. Also, I cannot see how I can intervene among the iterations of the solver and use the callback to obtain the objective value. Could you provide some further information on this?

     

    Warm Regards,

    Gregory

    0
  • Jaromił Najman
    • Gurobi Staff

    Hi Greg,

    The MATLAB API does not support callbacks. Thus, you cannot intervene among the iterations of the solver through MATLAB. If you want to have access to callbacks, you would have to use another API like Python, C, C++, Java, or .NET. An example of how to use callbacks can be found in the Python TSP example.

    Best regards,
    Jaromił

    1

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