Search found 2 matches

by fpsathas
2 years ago
Forum: Modeling
Topic: How to model a binary variable that can only happen once a year?
Replies: 1
Views: 2400

How to model a binary variable that can only happen once a year?

Hello, I have a set t which is the total number of months and a binary variable b(t). I want to have a constraint that sets b(t) less or equal to 1 each year in a single constraint. I can do this with predetermined time periods and multiple constraint like for example with 36 months: eq1.. sum(t $ (...
by fpsathas
2 years ago
Forum: Modeling
Topic: How can I model distances between nodes easier?
Replies: 1
Views: 2055

How can I model distances between nodes easier?

Hello, I want to model 4 levels of material flow for a supply chain: field -> storage -> manufacturing -> end users I am importing these 4 sets and their coordinates from an excel file like this example for the storage below: set=s rng=indices!a2:a8 rdim=1 set s(*); $load s Also I have 3 matrix para...