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

gurobipy.GurobiError: Invalid argument to LinExpr multiplication

ユーザーの入力を待っています。

コメント

2件のコメント

  • 正式なコメント
    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 try Gurobot, our chatbot interface offering instant, expert-level support.
  • Jaromił Najman
    • Gurobi Staff

    Could you please provide a minimal reproducible example? An example with a sample_list of 2-3 elements and a few hard-coded u_values and Wp variables would make providing help way easier.

    From the snippet you showed, it looks like the term

    ((i.Wp * i.u_value * i.Qsol[t])for i in sample_list)

    does not generate a list as required by the quicksum function.

    0

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