
Huib Meulenbelt
- Total activity 37
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 3
- Subscriptions 10
Posts
Recent activity by Huib Meulenbelt-
Create truth table of two events
AnsweredHi all, Let's assume there are two possible events in a fight that lasts r rounds between blue and red: fight lasts over 1.5 rounds red has more significant strikes in round 4 The corresponding tru...
-
Generate all paths that consists of specified number of visits of nodes / edges
AnsweredIn a graph/chain there are 3 different states: ST, GRC_i and GRC_j. The following edges between the states exists: EDGES = [ # source, target, name ('ST', 'GRC_i', 'TDL_i'), ('ST', ...
-
Find max unit flow in Networkx.Graph using Gurobi
AnsweredHi all, I have a `networkx.Graph`-object called G. import networkx as nximport gurobipy as grbfrom gurobipy import GRBimport matplotlib.pyplot as pltG = nx.hoffman_singleton_graph() G consists of...
-
Convert values of gurobi.LineExpr to integers
AnsweredHi, I have the following graph `G` This is created using the following code import networkx as nximport matplotlib.pyplot as pltG = nx.hoffman_singleton_graph()pos = nx.spring_layout(G)nx.draw(...
-
How to define that m successive variables should be the same
AnsweredHi all, Player A and player B participate in a tennis game. Each player can "serve" m times. A player wins when he scores n points. The number of points of A is a and the number of points of B is b...
-
Model not feasible while solution does exists
AnsweredHi, I create model as follows def create_model() -> gurobi.Model: m = gurobi.Model() m.Params.LogToConsole = 1 m.Params.PoolSearchMode = 1 m.Params.PoolSolutions = 1 m.Params.PoolGap...
-
Maximum number of elements in LineExp for free trial?
AnsweredHi all, I want to make a model that helps me to determine where to aim on the dartboard. The dartboard consists of x and y coordinates. These values range from -170 to 170. Let's say that the possi...
-
Integers as name for Vars
AnsweredHi, Running the following code doesn't gives an error: x_vars = m.addVars(341, vtype=gurobi.GRB.BINARY, name=[str(i - 170).zfill(1) for i in range(341)]) whereas x_vars = m.addVars(341, vtype=gurob...
-
Use value of Var as dictionary key
AnsweredHi all, I have the following Var and corresponding constraints: m = gurobi.Model() s_vars = m.addVars(4, lb=0, ub=5, vtype=gurobi.GRB.CONTINUOUS, name='s')m.update() m.addConstr(s_vars[0] == 2)m.a...
-
Solutions are the same for darts game
AnsweredHi, I want to know where a player can throw at when playing a darts game. The goal of a darts game is to checkout with a double or double bullseye. When s=4 is the legal moves are: S1, S2, D1 and D...