Skip to main content

result not correct

Answered

Comments

3 comments

  • Official comment
    Simranjit Kaur
    • Gurobi Staff
    This post is more than two 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 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

    This is a duplicate of result not correct.

    0

Post is closed for comments.