help-glpk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-glpk] Api routines


From: assem HASSAN
Subject: [Help-glpk] Api routines
Date: Wed, 17 Dec 2003 13:28:42 +0000 (GMT)

Hello,I am new to the glpk package and i needed some
help:
I have an objective function and a set of constraints
but I dont know how to pogram it with glpk.I want to
use the set of api routines the glpk provides.
I have read the example in the refrence manual but
still the example is so simple compared to my
equations.

objective function
min : a1+a2+a3+a4+a5+a6+2.5 b1+2.5 b2+2.5 b3+ 2.5
b4+2.5 b5+2.5 b6

Constraints:

x_1_1 + x_1_2 +x_1_3 = 151;
x_2_1 + x_2_2 +x_2_3 = 401;
x_3_1 + x_3_2 +x_3_3 = 51;
x_4_1 + x_4_2 +x_4_3 = 101;
x_5_1 + x_5_2 +x_5_3 = 51;
x_6_1 + x_6_2 +x_6_3 = 31;

x_1_1 + x_2_2 + x_3_2+x_4_2+x_5_2 <= 63 a1+252 b1
x_1_2 + x_2_1 + x_3_3+x_4_2+x_6_2 <= 63 a2+252 b2
x_1_3 + x_2_3 + x_3_1+x_5_2+x_6_2 <= 63 a3+252 b3
x_1_2 + x_2_2 + x_4_1+x_5_3+x_6_3 <= 63 a4+252 b4
x_1_3 + x_3_2 + x_4_3+x_5_1+x_6_3 <= 63 a5+252 b5
x_2_3 + x_3_3 + x_4_3+x_5_3+x_6_1 <= 63 a6+252 b6

Thanks in advance,
Asem

________________________________________________________________________
BT Yahoo! Broadband - Save £80 when you order online today. Hurry! Offer ends 
21st December 2003. The way the internet was meant to be. 
http://uk.rd.yahoo.com/evt=21064/*http://btyahoo.yahoo.co.uk




reply via email to

[Prev in Thread] Current Thread [Next in Thread]