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

Equivalences to certain CPLEX API calls/parameters

コメント

2件のコメント

  • Mark Wayne

    Hello

    pls check below-

    • Data Consistency Checking

      • CPLEX: CPXPARAM_Read_Datacheck (debugging assistance)
      • Gurobi: No direct equivalent, but errors/warnings help detect issues.
    • Screen Output

      • CPLEX: CPXPARAM_ScreenOutput (1 = enable output)
      • Gurobi: OutputFlag (1 = enable, 0 = disable).
    • Adding Columns

      • CPLEX: CPXnewcols (adds multiple variables at once).
      • Gurobi: Use GRBaddvar in a loop and GRBsetattrarray for bulk updates.
    • Retrieving Solutions

      • CPLEX: CPXsolution (fetches all values in one call).
      • Gurobi: Use GRBgetdblattrarray(model, "X", 0, total_variables, Sol).
    • Parallel Optimization

      • CPLEX: CPXPARAM_Parallel (Auto, Deterministic, Opportunistic).
      • Gurobi: Always deterministic, no opportunistic mode.
    • Advanced Start

      • CPLEX: CPXPARAM_Advance (controls basis use in MIP/LP).
      • Gurobi: No direct equivalent; use "Start" attribute for MIP warm starts.
    1
  • OneCable OneCable
    First Comment
    First Question

    Thank you. I will test these out. Regarding:

    "Advanced Start

    CPLEX: CPXPARAM_Advance (controls basis use in MIP/LP).
    Gurobi: No direct equivalent; use "Start" attribute for MIP warm starts."

    Since I posted this more than a month ago, I got a chance to delve deeper into gurobi manual. It appears to me that setting CPXPARAM_Advance to 0 in CPLEX is equivalent to essentially running GRBreset() in Gurobi:

    https://docs.gurobi.com/projects/optimizer/en/current/reference/c/solving.html#c.GRBreset

    0

サインインしてコメントを残してください。