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
>> [email protected]
>> http://lists.gnu.org/mailman/listinfo/help-glpk
>>
>>    
>
>

Attachment: corrige_modelisation_projet_2010.pdf
Description: Adobe PDF document

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

Reply via email to