Am 19.01.2013 um 19:34 schrieb Mike Steglich:

> Hello Ali,
> 
> Could you post the error messages you got from glpk.
> Your objective function seems to be a division of two binary vectors of 
> variables and this is a non-linear term that  is not supported by glpk.   
> 
> Thanks
> 
> Mike    
> 
> Am 18.01.2013 um 19:48 schrieb Andrew Makhorin:
> 
>> -------- Forwarded Message --------
>> From: Ali Raza <[email protected]>
>> To: [email protected]
>> Subject: GNU Program
>> Date: Tue, 15 Jan 2013 17:44:24 -0500
>> 
>> I have a quick question. I am trying to write a simple program in GNU
>> software. I am having difficities and it is giving me errors. I have not
>> used this program before and I would like to know if there is some help
>> that is avaialable in guiding me to write the correct code. Would you
>> please take a look at my code and let me know what am i doing wrong.
>> 
>> Thanks
>> 
>> 
>> var x >= 0;
>> var y >= 0;
>> param j = x;  
>> param k = y; 
>> param l :=   7.25 ;
>> var x{1..n} integer;
>> var y{1..m} integer;
>> minimize obj: {(x/y) / (l)};
>> 
>> param j : a  b  c   d   e   f   g   h
>>     a 336 367 408 307 460 452 154 257
>>     b 410 469 481 260 242 462 168 168
>>     c 206 164 85 406 378 17 432 293
>>     d 21 79 427 360 219 310 23 344
>>     e 23 263 128 392 126 370 331 392
>>     f 353 467 2 365 318 37 17 337
>>     g 475 179 275 30 346 392 55 178
>>     h 489 65 107 174 343 367 459 39  
>> 
>> param k : a 54
>>         b 25   
>>         c 36     
>>         d 56 
>>         e 41  
>>         f 45    
>>         g 26 
>>         h 14
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> _______________________________________________
>> Help-glpk mailing list
>> [email protected]
>> https://lists.gnu.org/mailman/listinfo/help-glpk
> 


_______________________________________________
Help-glpk mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-glpk

Reply via email to