Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Cannot use the type float with "in"

    Posted 11/03/22 09:38 AM
    Dear all,


    I'm develloping this constraint code for optimization problem by using Cplex 22.1.0 
    here are the mathematical equation:

    when 
    E(ik) =[ [3, 5, 1, 1.2, 1, 5, 4, 1.2],
                [3, 5, 1, 1.2, 1, 5, 4, 1.2],
                [ 4, 1, 4, 2, 2, 4, 3, 3, 1.3, 1] ];



    subject to
    {
       forall (i in M,)
       sum ( k in 0..n+1 ) sum ( l in E[i][k] ) X[i][l][k][k] == 0 ;


    when i run the program, i get the following error :

    (Description Resource Path Location Type
    Cannot use the type float with "in". essai10.mod /essai1 77:25-59 C:/Users/yesmine yaich/opl/essai1/essai10.mod OPL Outline Problem Marker)

    Could anyone tell me what should i do, please ?
    thank you in advance.







    ------------------------------
    yesmine yaich
    ------------------------------

    #DecisionOptimization


  • 2.  RE: Cannot use the type float with "in"

    Posted 11/05/22 05:05 PM
    Hi,

    can you share your .mod and .dat so that other users could try ?

    regards

    ------------------------------
    [Alex] [Fleischer]
    [Data and AI Technical Sales]
    [IBM]
    ------------------------------