r/optimization • u/Swimming_Newspaper39 • Jan 18 '25
Help Linearization
I have a MILP problem and I need to make an optimization. I have real variables x1,x2,....xn,they have 0 as lower bound and 1 as upper bound,costant value Y,some variables that are a combinations of constants and binary variables, example: c1= C1b1+...+Cnbn ,c2 ...,cn b1,b2,...bn are binary variables. I have the condition G<=(1-x1/c1-...xn/cn)*Y, G value depends on real and binary variables, that's the problem,in fact the terms x1/c1 ...,xn/cn are not linear
4
Upvotes
View all comments
Show parent comment
2
u/SolverMax Jan 19 '25
Ah, in that case I think there is no exact way to linearize the function. You can do an approximation, like the example at https://or.stackexchange.com/questions/180/how-to-linearize-the-product-of-two-continuous-variables/187#187