help-glpk
[Top][All Lists]
Advanced

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

[Help-glpk] Can I simulate step function in GLPK?


From: xiaomi
Subject: [Help-glpk] Can I simulate step function in GLPK?
Date: Wed, 01 Sep 2010 09:44:17 -0400
User-agent: Thunderbird 2.0.0.24 (Windows/20100228)

I am considering to use the property that the result of GLPK is
non-negative to simulate step function as follows:
for example: step function y=u(5);
minimize y
y<=M(x-5) , where M is a large number to simulate sharp slope.
y<=1;

It seems to imply that when y<=5, y>=M(x-5) && y>=0.
Does that work(fast?)? And is GLPK default to be non-negative result?

Thanks.



reply via email to

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