linearize equation in MILP

how can i free from multiplying two variabe (below formula) in MILP


pk=pk*q


where q is binary variable and Pk is continoue variable 0<PK<1.




\

hi, you can linearize pk2=pk*q as follows

pk2-pk= -M(1-q)

(Note: M is a sufficiently big number)


To view this discussion on the web visit https://groups.google.com/d/msg/gamsworld/-/7RThBkJLOhwJ.
To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.

infact, if pk is between 0 and 1 you can use [ pk<= q ] for linearization of this equation


To view this discussion on the web visit https://groups.google.com/d/msg/gamsworld/-/lJy7MrB4u68J.
To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.

thanks but it does not work.

On Oct 21, 10:44 pm, Safar wrote:

infact, if pk is between 0 and 1 you can use [ pk > this equation

\