Skip to main content

Infeasible solution after addGenConstrPWL

Answered

Comments

3 comments

  • Official comment
    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

    Your example is not reproducible. Variables n,m, q, c are not defined. In addition, there are imported packages missing. Can you please update your code to be reproducible.

    I solve the above model to get the objective value, which is very close to the true optimum. However, when I can check the solution (y,z) I find them infeasible, because the summation of them is greater than 1, e.g., 1.58, 2.36, etc.

    Do you get any warning about violated constraints in the log file/output?

    Best regards, 
    Jaromił

    0
  • Jiajie Zhang
    • Gurobi-versary
    • First Comment
    • First Question

    Hi Jaromił, I did not remember the specific parameter setting. These days I have tried many other parameter settings and have not found any infeasible solutions again. In case I find any infeasible solution in my following experiments, I will post it here. Thank you very much.

     

    0

Post is closed for comments.