Tiril Amundsen
- Total activity 8
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 0
- Subscriptions 2
Activity overview
Latest activity by Tiril Amundsen-
Tiril Amundsen commented,
Thank you so much. Another question arised when implementing the complete model. I have a table of variables that is dependent on both commodity, routes and nodes. When adding constraints I have to...
-
Tiril Amundsen commented,
Hi, thank you for the answer! But when running only the above I get the error message "KeyError: 0". It seems to be for the "for r in R[k].
-
Tiril Amundsen commented,
Thank you, it worked!
-
Tiril Amundsen created a post,
Defining a set dependent on an other set
Awaiting user inputHi, I'm trying to define a set that is dependent on another set, like this: K: Set of commodities, denoted k R^k: Set of feasible routes for transporting commodity k, denoted r I have two commodit...
-
Tiril Amundsen commented,
import pandas as pdimport gurobipy as gpfrom gurobipy import *import numpy as npfrom gurobipy import GRBimport matplotlib.pyplot as pltimport sys## Sets ##criteria = [0, 1, 2, 3, 4]decisionM = [0, ...
-
Tiril Amundsen created a post,
Possible to define objective parameters in constraints?
AnsweredHi, I have a problem defining some parameters that I want to use in my objective function. I want to define the parameter used in the objective function in the constraints, but it only returns that...