# David Mejía

• Total activity 18
• Last activity
• Member since
• Following 0 users
• Followed by 0 users
• Subscriptions 5

## Activity overview

Latest activity by David Mejía
• David Mejía commented,

Thanks! David

• David Mejía created a post,

### PWL approximation of trigonometric functions

Dear Gurobi Community, Short question. When using addGenConstrSin(x,y) or addGenConstrCos(x,y), should the variable x be in radians or degrees? Thanks for your help.

• David Mejía created a post,

### quicksum contraint slows solver.

Hi,  I´m working in a MILP model. It solves relatively fast within 10 to 15 minutes. But after adding the following two constraints, the solver takes about 4 days to solve the problem. Any idea why...

• David Mejía commented,

Thank you for that explanation Matthias. It just seemed too good to be true.  Best Regards, David

• David Mejía commented,

Thank you Eli for your fast response. I´ve tried your hint. When I use either MIPFocus=1 or Heuristics=0.1 the solver finds a solution really fast, but no nodes where explored during the optimizati...

• David Mejía created a post,

### Solver takes to long too find Incumbent solution

Hi, I´m trying to solve a MILP problem with quadratic constraints. The solver is taking a fairly long time finding a incumbent solution. When it finds it, it´s when the optimization is done. The be...

• David Mejía commented,

Hi Eli, Thank you so much for your help, that answered my question!

• David Mejía created a post,

### implement conditional constraint

Hi,  I´ve been trying to implement this constraint: if a >=1 then b=1 else b =0 a is a continuous variable  b is a binary variable I´ve seen people using the big M to express this, but I can´t get ...

• David Mejía commented,

Thank you so much for the advice, it worked out perfectly. David

• David Mejía created a post,