Dear all, I'm a newbie in mathematical programing, and I need to translate the following condition into constraints for solving a linear program.
------------------------- variables: c(x,y),x,y parameters: p>q>0 c(x,y) = 1 if x-y+q > 0 c(x,y) = -1 if x-y+p <= 0 c(x,y) = 0 else ------------------------- Note that x and y are between 0 and 1. Does anybody have an idea how to do that? Thank you very much for any hint. Patrick Meyer _______________________________________________ Help-glpk mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-glpk
