Dear List,
I am trying to formulate a multiple choice knapsack problem. I am stuck
at the point where I need to formulate subsets of a given set.
From the archives of this list I have got the idea that you can it like
this:
set FOO;
set BAR{FOO};
Am I correct here?
For my multiple choice KP I need to state the s.t. so that at most 1
element of each subset FOO is chosen. How can I do that?
Third, how do I assign data to a parameter weight[i from BAR]?
I assumed that weight[0] := a 1 b 2 ... etc would do it but glpsol
complains about weight[0] already been assigned.
Thank you very much for your help!
Sincerely,
Christian Kellermann
P.S.: I am using glpk version 4.8 on a i386 ubuntu linux distribution.
begin:vcard
fn:Christian Kellermann
n:Kellermann;Christian
org:Fraunhofer IIS;Audio / Broadcast Applications
adr:;;Am Wolfsmantel 33;Erlangen;Bayern;91058;Germany
email;internet:[EMAIL PROTECTED]
tel;work:+49 9131 776 3017
tel;fax:+49 9131 776 398
note;quoted-printable:http://www.iis.fraunhofer.de/dab/products/dataserver/=0D=0A=
http://www.iis.fraunhofer.de/dab/products/contentserver/
x-mozilla-html:FALSE
url:http://www.iis.fraunhofer.de
version:2.1
end:vcard
_______________________________________________
Help-glpk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-glpk