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

Error when using Sparse matrix with Gurobi variables

回答済み

コメント

3件のコメント

  • 正式なコメント
    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 Sagnik,

    Could you provide a minimal working example producing the error you posted?

    In case, you were able to solve the problem, could you provide the solution of how you achieved it?

    Best regards,
    Jaromił

    0
  • Brannon King
    • Gurobi-versary
    • Conversationalist
    • Curious

    This question is old, but so as it has an answer: you can't use numpy functions on scipy sparse objects. The transpose should be sH.T and the dot product should be done via the @ operator: sH @ D . 

    0

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