help-glpk
[Top][All Lists]
Advanced

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

Re: [Help-glpk] Expressing constraints


From: Erik Rantapaa
Subject: Re: [Help-glpk] Expressing constraints
Date: Fri, 8 Feb 2008 09:54:21 -0800 (PST)

Hi Sam,

I think you need to add the constraint "if power[i] < 8, then b_node[i] = 0":

s.t. power(i in NODES, power[i] < 8): b_node[i] = 0;

That is, you want to add the constraint b_node[i] = 0 only for those i that 
satisfy power[i] < 8.

This will replace your 'a_value' and 'b_value' constraints.


      
____________________________________________________________________________________
Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping




reply via email to

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