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

Constraint with very large sparse matrices

回答済み

コメント

1件のコメント

  • Mario Ruthmair
    • Gurobi Staff

    Hi Nicolas,

    The solver must transform your expression to obtain a single coefficient for each variable before the solution process starts. So, the matrix-matrix multiplications need to be done first.
    You might need to use some Python methods specialized for sparse matrices to do the matrix-matrix multiplications efficiently before defining the constraint.
    The number of variables is quite high, but we have seen larger models. It, of course, depends on the structure and numerics of the problem if this model can be solved in a reasonable time.

    Best regards,
    Mario

    0

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