Margi Shah
- Total activity 174
- Last activity
- Member since
- Following 1 user
- Followed by 0 users
- Votes 0
- Subscriptions 11
Posts
Recent activity by Margi Shah-
How to use Gurobi academic license on a university's supercomputer(cluster)?
AnsweredHi , I am Margi, a PhD student in the School of Engineering at Cardiff University, UK. I want to run a program on a university's supercomputer (cluster).It means, university has a range of clust...
-
GurobiError: Version number is 11.0, license is for version 10.0
AnsweredHi team, I am facing this error. I have installed gurobipy with conda. Right now I have Python 3.12 installed. Can you please help me with this error? I tried having a look at similar error posts b...
-
How to get number of binary variables and number of continous variables after doing optimisation?
AnsweredI run a model using Gurobi. I want to find the number of binary variables and continuous variables of the model. How do I do it?
-
Using min & max functions in objective function
AnsweredHi Team, I have been trying to modify my objective function: This was my objective function: obj=gp.quicksum(price_energy[t-1]*EnergyResource[res,t] for res in reslist2 for t in time1) Now what I a...
-
Using a for loop for a single or specific value in variable list in constraint formulation
Answeredtime = list()for x in range(0,int(num_t)): time.append(x) Resources=steel.addVars(res_list,time,vtype=GRB.INTEGER,name="Resources")Tasks=steel.addVars(task_list,time,vtype= GRB.BINARY,name="Task...
-
Warning: linear constraint 0 and linear constraint 1 have the same name "Resourcebalane [1,0]"
Answeredimport numpy as npimport pandas as pdimport xlrdimport csvfrom collections import OrderedDictimport mathimport gurobipy as gpfrom gurobipy import GRB group2heats = {'1': [1, 2, 3, 4], '2': [5, 6, 7...
-
Retrieving Variable Attribute using Var.getAttr()
AnsweredHello, I have defined below Variables in my model: Resources=steel.addVars(res_list,time,vtype=GRB.INTEGER,name="Resources")Tasks=steel.addVars(task_list,time,vtype= GRB.BINARY,name="Tasks") Wha...
-
Using a for loop which has range of values in the constraint formulation
AnsweredI am trying to formulate below constraint. I have modified it as: I have calculated the LHS part as per some data in my code which is as below: res_cat2idx= [OrderedDict([('EAF', [1]), ...
-
Nested Summation constraint for MILP problem
AnsweredCan anyone help me how to write this constraint? As I am new to python and started using gurobi for optimization.