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

gurobipy.GurobiError: Unable to convert argument to an expression

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

コメント

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.
  • Jonasz Staszek
    • Community Moderator
    • Gurobi-versary
    • Thought Leader
    • First Question

    Dear Eduardo,

    there is something wrong with your objective function. I intuitively tried to correct its implementation to:

    objetivo = quicksum(quicksum(u[p, t] for p in P) + quicksum(h[i, t] for i in I_sin_P) + 0.01 * quicksum(
        quicksum(r[l, t]*a[i, l] for i in Ingredientes) for l in Tipo_de_sushi) for t in Tiempo)

    but then your model is infeasible.

    If that is not what you expect, you can share the mathematical formulation of your objective function. We may then be able to help you further.

    Best regards
    Jonasz

    0

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