Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  How do I change the objective function in CPLEX readable format

    Posted 06/17/12 09:17 PM

    Originally posted by: SystemAdmin


    int D=1;
    float d=0.1;
    int C=30;

    dvar float xs;
    dvar float ys;

    int xhttp://1..3=0,10,0;
    int yhttp://1..3=0,0,10;

    int P1=1000;
    int P2=500;

    maximize
    P2*(1+d)^(-sum (i in 1..3)((xs-x[i])^2+(ys-y[i])^2)^0.5)+P2*(1+d)^(-sum (i in 1..2)((xs-x[i])^2+(ys-y[i])^2)^0.5)
    - C*(1+d)^(-sum (i in 1..3)((xs-x[i])^2+(ys-y[i])^2)^0.5) ;

    subject to{
    0<= xs <=10;
    0<= ys <=10;

    }
    #DecisionOptimization
    #MathematicalProgramming-General


  • 2.  Re: How do I change the objective function in CPLEX readable format

    Posted 06/18/12 12:36 PM
    Hi,

    do you mean you'd like CPLEX to handle this objective?

    Regards
    #DecisionOptimization
    #MathematicalProgramming-General


  • 3.  Re: How do I change the objective function in CPLEX readable format

    Posted 06/19/12 02:19 AM

    Originally posted by: SystemAdmin


    How do I change the objective function where it reads by the CPLEX?
    #DecisionOptimization
    #MathematicalProgramming-General


  • 4.  Re: How do I change the objective function in CPLEX readable format

    Posted 06/19/12 12:55 AM

    Originally posted by: SystemAdmin


    Do I read correctly that you want to have decision variables in the exponent of expressions? That is not supported.
    #DecisionOptimization
    #MathematicalProgramming-General


  • 5.  Re: How do I change the objective function in CPLEX readable format

    Posted 06/19/12 02:20 AM

    Originally posted by: SystemAdmin


    Then,How do I change the objective?
    #DecisionOptimization
    #MathematicalProgramming-General


  • 6.  Re: How do I change the objective function in CPLEX readable format

    Posted 06/19/12 03:27 AM
    Hi,

    using the constraint programming engine could be an option?

    
    using CP;   
    
    int scale=10;   
    
    int D=1; 
    
    float d=0.1; 
    
    int C=30;   execute 
    { cp.param.timelimit=10; 
    }     dvar 
    
    int xs2 in -1000*scale..1000*scale; dvar 
    
    int ys2 in -1000*scale..1000*scale;     dexpr 
    
    float xs=xs2/scale;; dexpr  
    
    float ys=ys2/scale;   
    
    int x[1..3]=[0,10,10]; 
    
    int y[1..3]=[0,10,0];   
    
    int P1=1000; 
    
    int P2=500;   maximize P2*(1+d)^(-sum (i in 1..3)((xs-x[i])^2+(ys-y[i])^2)^0.5)+P2*(1+d)^(-sum (i in 1..2)((xs-x[i])^2+(ys-y[i])^2)^0.5) - C*(1+d)^(-sum (i in 1..3)((xs-x[i])^2+(ys-y[i])^2)^0.5) ;   subject to
    { 0<= xs <=10; 0<= ys <=10;   
    }
    


    regards
    #DecisionOptimization
    #MathematicalProgramming-General