On Wed, 1 Sep 2010, xiaomi wrote:

Thanks, Michael. I am sorry there are several typo in my original statement. Let me recify it as follows:
for example: step function y=u(5);
maxmize y
y<=M(x-5) , where M is a large number to simulate sharp slope.
y<=1;

The only wired thing is that when x<5, y will be y <= a number that is negative. However if y is nongative as default, can this property restrict y to be 0 when x<5? (without binary)

No.
If M(x-5) must be less than zero,
the problem described is infeasible.
You'll need to make y binary.

--
Michael   [email protected]
"Pessimist: The glass is half empty.
Optimist:   The glass is half full.
Engineer:   The glass is twice as big as it needs to be."

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

Reply via email to