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

help with modeling

回答済み

コメント

4件のコメント

  • 正式なコメント
    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

    The Knowledge Base article How do I determine why my model is infeasible? explains how to proceed in such a case.

    0
  • JOVANIO JOSE GALVAO JUNIOR
    • Gurobi-versary
    • First Comment
    • First Question

     

    I did the tests, as a return I got this model.ilp file
    containing the following


    \ Model _copy
    \ LP format - for model browsing. Use MPS format to capture full model detail.
    Minimize
     
    Subject To
     R93: - C1157 + C1173 + C1175 + C1176 + C1177 + C1178 + C1179 + C1180
       + C1181 + C1182 + C1183 + C1184 + C1185 + C1186 + C1187 + C1188 + C1189
       - C1191 - C1208 - C1225 - C1242 - C1259 - C1276 - C1293 - C1310 - C1327
       - C1344 - C1361 - C1378 - C1395 - C1412 - C1429 = 1
     R98: - C1157 + C1173 + C1175 + C1176 + C1177 + C1178 + C1179 + C1180
       + C1181 + C1182 + C1183 + C1184 + C1185 + C1186 + C1187 + C1188 + C1189
       - C1191 - C1208 - C1225 - C1242 - C1259 - C1276 - C1293 - C1310 - C1327
       - C1344 - C1361 - C1378 - C1395 - C1412 - C1429 = 24
    Bounds
     C1157 free
     C1173 free
     C1175 free
     C1176 free
     C1177 free
     C1178 free
     C1179 free
     C1180 free
     C1181 free
     C1182 free
     C1183 free
     C1184 free
     C1185 free
     C1186 free
     C1187 free
     C1188 free
     C1189 free
     C1191 free
     C1208 free
     C1225 free
     C1242 free
     C1259 free
     C1276 free
     C1293 free
     C1310 free
     C1327 free
     C1344 free
     C1361 free
     C1378 free
     C1395 free
     C1412 free
     C1429 free
    Generals
     C1157 C1173 C1175 C1176 C1177 C1178 C1179 C1180 C1181 C1182 C1183 C1184
     C1185 C1186 C1187 C1188 C1189 C1191 C1208 C1225 C1242 C1259 C1276 C1293
     C1310 C1327 C1344 C1361 C1378 C1395 C1412 C1429
    End
    0
  • Jaromił Najman
    • Gurobi Staff

    If you look at the two constraints \(\texttt{R93}\) and \(\texttt{R98}\), you will see that both constraints have the exact same left-hand side and set the respective left-hand side to either 1 or 24, which is infeasible.

    So now you have to find out how those two constraint made it into your model and try to fix it.

    0

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