Decision Optimization

Decision Optimization

Delivers prescriptive analytics capabilities and decision intelligence to improve decision-making.


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
Expand all | Collapse all

CPLEX Error 1217

  • 1.  CPLEX Error 1217

    Posted 04/22/12 09:04 PM

    Originally posted by: FANS_Nader_Al_Theeb


    Hello,

    I read some previous threads in this forum about

    (Error: CPLEX Error 1217: No solution exists.)

    I save my model as .LP file and check it, all constraints as I expected and the model is correct. I don't know why I receive such message.

    How I can solve this problem and get the results?

    Thanks
    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: CPLEX Error 1217

    Posted 04/22/12 11:03 PM

    Originally posted by: Eumpfenbach


    Just taking a stab at this, but are you maybe referencing the solution field of a cplex object before solving (ie, within a loop or something)?
    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: CPLEX Error 1217

    Posted 04/23/12 01:04 PM

    Originally posted by: FANS_Nader_Al_Theeb


    I don't know what you mean exactly, but I print some thing after each loop and I get it out, so I can say that the problem with solve

    Thanks
    #CPLEXOptimizers
    #DecisionOptimization


  • 4.  Re: CPLEX Error 1217

    Posted 04/23/12 02:17 AM

    Originally posted by: SystemAdmin


    Have you tried using the conflict refiner to figure out why CPLEX thinks your model is infeasible?
    #CPLEXOptimizers
    #DecisionOptimization


  • 5.  Re: CPLEX Error 1217

    Posted 04/23/12 01:02 PM

    Originally posted by: FANS_Nader_Al_Theeb


    How it could be used? is there any command to do that?
    Thanks
    #CPLEXOptimizers
    #DecisionOptimization


  • 6.  Re: CPLEX Error 1217

    Posted 04/24/12 01:55 AM

    Originally posted by: SystemAdmin


    You can export the model to a SAV file and then use the interactive optimizer:
    read model.sav
    conflict
    

    You can also do it directly in the code using CPXrefineconflict() or IloCplex::refineConflict().
    See also this chapter in the user's manual.
    #CPLEXOptimizers
    #DecisionOptimization


  • 7.  Re: CPLEX Error 1217

    Posted 04/24/12 05:00 PM

    Originally posted by: FANS_Nader_Al_Theeb


    Hi

    I received "No conflict exists."
    Thanks
    #CPLEXOptimizers
    #DecisionOptimization


  • 8.  Re: CPLEX Error 1217

    Posted 04/25/12 10:59 AM

    Originally posted by: SystemAdmin


    Hm, that would mean that your model is feasible. Just to be sure, what you did was
    cplex.exportModel("model.sav");
    if ( cplex.solve() ) {
       cplex.getObjValue(); // This or querying other solution data throws an exception
    }
    

    What is the version of CPLEX you use? Did you use any non-default parameter settings? Could you attach your model here?
    #CPLEXOptimizers
    #DecisionOptimization


  • 9.  Re: CPLEX Error 1217

    Posted 04/26/12 12:30 AM

    Originally posted by: FANS_Nader_Al_Theeb


    Hi

    I found where is the problem when I use the if statement

    Thanks a lot
    #CPLEXOptimizers
    #DecisionOptimization


  • 10.  Re: CPLEX Error 1217

    Posted 06/19/12 01:10 AM

    Originally posted by: caowenwei


    I guess the reason is that you haven't call cplex.solve() before getting the solution
    #CPLEXOptimizers
    #DecisionOptimization


  • 11.  Re: CPLEX Error 1217

    Posted 06/22/16 05:05 AM

    Originally posted by: NRouge


    Hi,

    I'm new to CPLEX and I have a problem that my model worked fine with a sample of data, so I think it means my model has no problem, but when  I run with another sample of data it returns "No solution".

    I don't know where the mistake is or how to find it. I attached my model below, please take a look. Thank you.


    #CPLEXOptimizers
    #DecisionOptimization


  • 12.  Re: CPLEX Error 1217

    Posted 06/22/16 11:22 AM

    @NgocHuynh 7107dfd5-f584-4bb6-bfc1-2cd5ea458b24​, I'd recommend that you start a new thread for this in the OPL forum.


    #CPLEXOptimizers
    #DecisionOptimization


  • 13.  Re: CPLEX Error 1217

    Posted 06/22/16 12:00 PM

    Originally posted by: NRouge


    Hi,

    Actually I wanted to but I don't know how to start a thread in this forum, please show me. And by the way, can you help me with my problem? Thanks.


    #CPLEXOptimizers
    #DecisionOptimization


  • 14.  Re: CPLEX Error 1217

    Posted 06/22/16 12:03 PM

    You should be able to just click on the "Start a Topic" button (at the link I provided above) and then fill in the details.  An OPL expert, or someone from the community will take it from there.


    #CPLEXOptimizers
    #DecisionOptimization


  • 15.  Re: CPLEX Error 1217

    Posted 06/22/16 12:07 PM

    Originally posted by: NRouge


    Thank you a lot  for your quick response.

    #CPLEXOptimizers
    #DecisionOptimization


  • 16.  Re: CPLEX Error 1217