# Muhammad Arslan Shahid

• Total activity 14
• Last activity
• Member since
• Following 0 users
• Followed by 0 users
• Subscriptions 4

## Activity overview

Latest activity by Muhammad Arslan Shahid
• Muhammad Arslan Shahid created a post,

### Multi-Objective Function with different indices variables

Awaiting user input

Hi, Objective function is   I want to add z_j with t_j_k in this objective function how can I implement it on the Gurobi C++ API? Or How can I use multi-objective function for both variables to ma...

• Muhammad Arslan Shahid created a post,

### Multiple solutions exists for one optimal solution

Hi,  I'm using Gurobi 11.0.0 C++ API. I want to print out all the solutions satisfying one optimal solution. Is there any way to print these out? Thanks, Arslan

• Muhammad Arslan Shahid commented,

Appreciate your prompt responses. I modeled the formulation to check the linear independence of columns of the input I used which is an adjacency matrix of a simple graph "a" and its linear depende...

• Muhammad Arslan Shahid commented,

Thanks for your responses. I used the parameters that you mentioned but NO change in the solution, even though I tried tight bounds. Can I put the bound on the precision of the variable so that it ...

• Muhammad Arslan Shahid commented,

Hi Jaromił, Thanks for your response. There is no fix to this issue. You should rather take the optimal solution point and check whether it is good enough for your application. If not, you could t...

• Muhammad Arslan Shahid commented,

Moreover, when given a fixed bound to 'x^k', e.g. -1e6 to 1e6, (26) constraint is violated which absolute value constraint and performs this strange behavior: t_2_1 should be |xp_2_1| but it gives...

• Muhammad Arslan Shahid commented,

Hi Jaromił, Thanks for your response, please see the below formulation, I implemented it on the Gurobi Python API, but It gives an optimal solution with violation in constraints.  Here decision va...

• Muhammad Arslan Shahid created a post,

### Gurobi- Absolute Value Constraints

Awaiting user input

Hi,  How to formulate the absolute value constraints in the Gurobi Python API? I have the constraint and I implements it but gives strange results by violating the constraints. How to fix it? Thanks

• Muhammad Arslan Shahid commented,

A continuous variable. I want to use a free variable (e.g. x) in a constraint that ensures that "x" should not equal zero and takes any value other than zero that is feasible.

• Muhammad Arslan Shahid created a post,

### Gurobi- Free Variable

Ongoing

Hi,  In Gurobi, how can a free variable be defined if it takes all the values negative or positive except zero?