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

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

回答済み

コメント

1件のコメント

  • 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

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