Replies posted by wiet
Hi, Thanks for your answer, however I get this error... The function RetrieveCurrentVariableValues cannot be called from a callback issued by GMP::SolverSessionExecute or GMP::SolverSession::AsynchronousExecute. Any alternatives? Thanks, W.
=st= means smaller than =gt= means greater than pars max_pos_stock (=gt= 0) max_neg_stock (=gt= 0) costs_pos_stock costs_neg_stock vars stock is_pos (binary) is_neg (binary) constraint stock - max_pos_stock * is_pos =st= 0 stock + max_neg_stock * is_neg =gt= 0 is_pos + is_neg =st= 1 cost function costs_pos_stock * is_pos + costs_neg_stock + is_neg
Not sure but what if you add more indices (m, n, o) to the set location? And then ... +lambda1(q)*0 +lambda2(q)*mu1 +lambda3(q)*mu2 +lambda4(q) = 1/T(q)*sum[k,sum[l,i(k,l,q)*min(travelTimes(k,l),tau)]] | m in LocationOnRouteQ(q) and n in LocationOnRouteQAfterK(o,q) Not sure of this is exactly the right solution, but I think introducing more indices is the key to your solution.
Thanks, but this doesn't exactly answer my question. I want to loop over and perform and action on all sets in the set self_declared_sets where... [code]self_declared_sets:= modelName * allSets ; [/code] And then I want to skip a set if the name of that set matches a string, e.g. "self_declared_sets" or "myBuildings". In your answer the sets on which an action needs to be performed are specified. I need to specify the sets on which no action needs to be performed. Maybe I need to create a subset first in which some elements of the original set are excluded.
Already have an account? Login
Please use your business or academic e-mail address to register
Login to the community
No account yet? Create an account
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.