Skip to main content

result not correct

Answered

Comments

2 comments

  • Jonasz Staszek
    • Community Moderator Community Moderator
    • Gurobi-versary
    • Thought Leader
    • First Question

    Dear Ghada,

    what kind of "thing" are you experiencing? Are the results not what you expected them to be?

    It would be helpful to also describe what kind of model you are solving and what is the desired behaviour of your code.

    Looking from afar, there is at least one issue I found with your code:

    You first store some weekly values in your dict C1:

    S1=b.values.tolist()

    but then you overwrite it with a tupledict containing variables:

    S1=m.addVars(products,weeks,name='S1')

    The same holds for S2. Is that the intended behaviour?

    Best regards
    Jonasz

    0
  • Jaromił Najman
    • Gurobi Staff Gurobi Staff

    This is a duplicate of result not correct.

    0

Please sign in to leave a comment.