|
From: | Seung Mo Gu |
Subject: | [Help-glpk] Creating variables |
Date: | Thu, 1 Apr 2010 21:18:52 +0400 |
Hello, I am currently a student working on a scheduling project and incorporating the use of GLPK. I am having some trouble due to memory constraints and was wondering how I would go about creating certain variables (in the case that you know certain values will be zero in optimal solution so might as well save memory and not consider them in the model). Currently I am using GUSEK to program this. Here is the portion where I create the variables as it is now: /* Decision Variable: Binary: Worker i does Job j before Job k */ var X{i in W,j in J, k in J},binary; /*Decision Variable: Begnning Times of Each Job*/ var Begin{i in W,j in J},integer,>=0; Because I #39;m doing this on a large scale problem, many X variables are generated but I don #39;t need all of them because most will be zero. Is there a way I can only create certain X and Begin variables given conditions for each one? Thank you!Hello, I am currently a student working on a scheduling project and incorporating the use of GLPK. I am having some trouble due to memory constraints and was wondering how I would go about creating certain variables (in the case that you know certain values will be zero in optimal solution so might as well save memory and not consider them in the model). Currently I am using GUSEK to program this. Here is the portion where I create the variables as it is now:
[Prev in Thread] | Current Thread | [Next in Thread] |