Decision Optimization

Decision Optimization

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

 View Only
Expand all | Collapse all

scripting runtime error in script part of column generation approaches

Archive User

Archive UserThu November 28, 2019 03:01 AM

Archive User

Archive UserSat November 30, 2019 11:40 PM

  • 1.  scripting runtime error in script part of column generation approaches

    Posted Wed November 27, 2019 03:53 AM

    Originally posted by: Mathsg


    Hi, 

     i am getting an error in script which is scripting runingtime erro: not of type Ilo Tuple: 1. i am unable to locating the problem. Kindly guide me. your help will be highly appricated. looking forward to hearing from IBM team and respected seniors. thank you so much


    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: scripting runtime error in script part of column generation approaches

    Posted Thu November 28, 2019 02:43 AM

    Hi,

    in your main I see

    var subSource = new IloOplModelSource("CG_2_PP.mod");

    but you have not attached that file. So it will be hard to reproduce your error.

    Plus in your submodel you wrote

    minimize((sum(k in Lincards, u in nodes)(n1[k][u]*k.costtype_lc*2))+(sum(k in ECcards, u in nodes)(n2[k][u]*k.costtype_ec*2))+(sum(i in flows, j in routes,  u in nodes, v in nodes)lemda[i][j][u][v]*(hope_count[j][u][v]-Duals[v])*i.flow_bw));

    but Duals is indexed by Routes and here v belongs to nodes. So that s not normal

    regards


    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: scripting runtime error in script part of column generation approaches

    Posted Thu November 28, 2019 03:01 AM

    Originally posted by: Mathsg


    hi boss,

     

    Thank you so much for your time. Actually the name of sub model i.e., "CG_2_PP" is the same which i have wrote in the code file of master problem. my idea is to relax the Master problem based on the current lightpaths and Pricing Problem will gnerate new lightpaths which can improve the objectiv of MP. I am not sure weather i have declear dual variables based on the nodes or routes? first i have tried on node and than now i have tried on routes but both the time i have get the same error. i have tried on your suggested comments and replace v on j in the objective of Pricing problem but again i get the same error. i am much cofused and unable to locate the bugs. Kindly help me to fix the bugs. thank you


    #CPLEXOptimizers
    #DecisionOptimization


  • 4.  Re: scripting runtime error in script part of column generation approaches

    Posted Sat November 30, 2019 11:40 PM

    Originally posted by: Mathsg


    Hello Alex,

     

    i have fixed some bugs but still I am getting an error of (Scripting runtime error: to a deleted object) while optimizing the network planing problem through column generation method. Master problem has been relaxed now for the given set of lighpaths for a flow between source to distination while pricing problem give me the result 6 which seems to be not correct as pricing problem should display the results with negative number if there is a lightpaths which can improve the master problem but PP give me positive result while in declaring next iteration for the MP OPL give me the mentioned above error. Kindly guide me how to write next iteration part for master problem to put the value of sub problem and also how to get the value of sub problem with the negative values. I am looking forward to hearing from you. thank you


    #CPLEXOptimizers
    #DecisionOptimization