help-glpk
[Top][All Lists]
Advanced

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

Re: [Help-glpk] condition writing in glpk


From: Mansour
Subject: Re: [Help-glpk] condition writing in glpk
Date: Tue, 7 Sep 2010 03:23:43 +0400

Hello Xypron

You will find the entire problem in the PDF attached to this mail.
My problem is about the constraint write under "// Couverture de chaque 
noeud par p capteurs", particularly the sub-condition of the sum : 
(k,l)€{1,..,I}x{1,..,J} as (k-i)²+(l-j)²<=d².
I'd like to know how to write it in glpk

Xypron wrote:
> Hello Monsour,
>
> unfortunately conversion to plain text made your formula illegible.
>
> Please, either send the formula in tex format or as an appendix in PNG 
> or PDF format.
>
> Please add some explanation.
>
> Best regards
>
> Xypron
>
> Mansour wrote:
>> Hello,
>>
>> I'm using glpk and I don't know how to write the condition below in my
>> model:
>>
>>
>> ? x[k,l] = p ?(i, j ) ? {1,..., I }× {1,..., J } as Obstacle[i,j] = 0
>> (k,l)?{1,...,I}×{1,..., J }
>> as ( k - i )² + ( l - j )² = d²
>>
>>
>> - The only variable of the problem is x[i,j] : x[i,j] ? {0,1} , i ?
>> {1,..., I }, j ? {1,..., J } .
>> - I,J,d and Obstacle[i,j] are parameters of the problem
>>
>> Please can you give me a solution to write this in my model.
>>
>> Best Regards,
>>
>> Mansour.
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> Help-glpk mailing list
>> address@hidden
>> http://lists.gnu.org/mailman/listinfo/help-glpk
>>
>>    
>
>

Attachment: corrige_modelisation_projet_2010.pdf
Description: Adobe PDF document


reply via email to

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