![]() In order to now also be able to solve problems with a bigger number of customers, I want to do it using a heuristic I have from a paper (Particle Swarm Optimization).įor this, I am implementing each step of the algorithm in a main-block (control flow) in ILOG Script. Right now I am trying to implement a particle swarm optimization algorithm in CPLEX to solve a Vehicle Routing Problem with a large number of customers.įirstly, I wrote an optimization model in OPL that is now able to get solutions for smaller instances. Is it possible for me to show someone my code and get some help on that? I am getting an error for "ex5" : CPLEX Cannot extract ex5. like with ex1 with mathematical expressionsĭexpr float ex5 = sum(p in projects, q in 1.q_p, t in (ES.LS), ns in 1.n_s_pq) (3 * nbArray4]* nbArray8]* nbArray5]) like ex1 with mathematical expressionsĭexpr float ex3 =. (My a,b and c values are being read from the data file)įor my objective function, I defined the following expression:ĭexpr float ex1 = sum(p in projects, q in 1.q_p, t in (ES.LS), ns in 1.n_s_pq) (nbArray9] (2b] + 3 * a]) - 3* nbArray12] - 4* nbArray10] + 5* nbArray6]* nbArray5]) ĭexpr float ex2 =. My objective function is too long, so I defined the following array and counterparts for each parameter combination for a, b and c:įloat nbArray6 = b*b*b įloat nbArray8 = b - c I am using CP Optimizer in CPLEX ILOG and trying to solve stochastic project scheduling and resource allocation problem. I've been trying to debug my CPLEX code but I am stuck :( ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |