Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  cplexamp through matlab

    Posted 04/19/13 02:12 PM

    Originally posted by: abhishek_umn


    Hi, 

    I am trying to run an ampl script through matlab by using following command:

    system( 'ampl filename.run');

     

    The solver used is cplexamp. 

    On terminal the command 'ampl filename.run'  works but Matlab shows the following error:

                   sh: Can't open cplexamp

                   exit code 2

                   <BREAK>

                    ans = 0

     

    Any kind of suggestion or help would be great.

    Thanks

    Abhishek


    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: cplexamp through matlab

    Posted 04/22/13 01:12 AM

    Is cplexamp on the PATH when you try to start it from matlab?


    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: cplexamp through matlab

    Posted 04/22/13 03:16 PM

    Originally posted by: abhishek_umn


    Hi

    yes I used following command to put cplexamp on the PATH in matlab:

    setenv('PATH',[getenv('PATH')':/-------'])

    I still have no idea why it is not working.

     

    Thanks for the reply.

     


    #CPLEXOptimizers
    #DecisionOptimization