Decision Optimization

Decision Optimization

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


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

Help - forall expression!!!

  • 1.  Help - forall expression!!!

    Posted 05/23/14 04:38 AM

    Originally posted by: RADUTONI


    Hi all,

    I am beginner with Cplex and i have some problem with FORALL expression.

    I want to write this expresion but i dont know how it s correct:

    ( time=1....144, Tariv= 120, Tdep = 50)

    forall (i in time : i between Tdep- Tariv) 

    P [ i ] == 0;

     

    You can help me to write this expression forall with i, in time and between 2 values of time.

    I need to do for optimization charging of electrical vehicle,and i do my model for Tariv < Tdep and it s ok, but for Tariv > Tdep, dont work. ( my car must charge in interval Tariv - Tdep, in rest P[i]=0)

    I attach my model and data files


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: Help - forall expression!!!

    Posted 05/23/14 04:50 AM

    Hi

    have you tried

    forall (i in time : (Tdep <= i <= Tariv))

    ?

    regards


    #DecisionOptimization
    #OPLusingCPLEXOptimizer