Skip to main content

Performance differences in creation of MLinExpr and constraint addition in Python API

Answered

Comments

1 comment

  • Riley Clement
    • Gurobi Staff

    Hi Dillon,

    Under the hood the matrix API leverages NumPy and SciPy.

    We explicitly check if operands are 1 dimensional because there are some methods from these libraries that we can use to construct the results faster.

    No drawback to reshaping comes to mind, but I'll ask the developers if they have any thoughts.

    - Riley

    0

Please sign in to leave a comment.