instruction stringlengths 59 28.3k | completion stringlengths 2 25.6k | conversations listlengths 2 2 |
|---|---|---|
The Traveling Salesman Problem is perhaps the most studied of all combinatorial optimization problems. There has been a lot work in solving TSP instances to provable optimality. Concorde solves very large instances to provable optimality, with the largest solved having 85,900 points. There is a 100,000 city problem ... | The Traveling Salesman Problem (TSP) is indeed known for its complexity, and while much progress has been made in solving instances of varying sizes to optimality, not all instances are created equal in terms of difficulty.
Regarding your question about the smallest "difficult instance" of TSP, the instance with 6,73... | [
{
"from": "human",
"value": "The Traveling Salesman Problem is perhaps the most studied of all combinatorial optimization problems. There has been a lot work in solving TSP instances to provable optimality. Concorde solves very large instances to provable optimality, with the largest solved having 85,900 ... |
For some insertion-type heuristics for the traveling salesman problem, we have a fixed worst-case error bound of the form:
$$\frac{z^H}{z^*} \le \eta,$$
where $z^H$ is the objective value of the solution returned by the heuristic for a given instance, $z^*$ is the optimal objective value for that instance, and $\eta$ i... | As of my last knowledge update in October 2023, it remains true that the farthest insertion heuristic for the Traveling Salesman Problem (TSP) does not have a known fixed worst-case error bound of the form \(\frac{z^H}{z^*} \le \eta\) for all symmetric instances satisfying the triangle inequality.
While some heuristi... | [
{
"from": "human",
"value": "For some insertion-type heuristics for the traveling salesman problem, we have a fixed worst-case error bound of the form:\n$$\\frac{z^H}{z^*} \\le \\eta,$$\nwhere $z^H$ is the objective value of the solution returned by the heuristic for a given instance, $z^*$ is the optimal o... |
In a continuous-review $(r,Q)$ inventory system under a type-1 service level constraint, if the demand per unit time is distributed as $N(\mu,\sigma^2)$ and the lead time, $L$, is a constant, then the lead-time demand also has a normal distribution. The optimal reorder point (under some simplifying assumptions) is give... | You are correct in your assessment regarding the distribution of lead-time demand (LTD) when both demand and lead time are stochastic. In your scenario, demand per unit time \(D\) follows a normal distribution \(N(\mu, \sigma^2)\), and lead time \(L\) also follows a normal distribution \(N(\mu_L, \sigma_L^2)\).
Howev... | [
{
"from": "human",
"value": "In a continuous-review $(r,Q)$ inventory system under a type-1 service level constraint, if the demand per unit time is distributed as $N(\\mu,\\sigma^2)$ and the lead time, $L$, is a constant, then the lead-time demand also has a normal distribution. The optimal reorder point (... |
I want to solve a problem with docplex.cp (module for Constraint Programming optimizer CPLEX for Python), and the problem is available in .lp or .mps formats. But I did not find the attribute for reading a file in it.
For the CPLEX itself, utilizing the cplex module it can be done as following:
import cplex
Model = cp... | You're correct that the `docplex.cp` module does not support importing models directly from `.lp` or `.mps` files. The `import_model` method is specifically designed for models in CPO or FZN format.
However, if you're working with a problem defined in an `.lp` or `.mps` file and want to solve it using the CPLEX engin... | [
{
"from": "human",
"value": "I want to solve a problem with docplex.cp (module for Constraint Programming optimizer CPLEX for Python), and the problem is available in .lp or .mps formats. But I did not find the attribute for reading a file in it.\nFor the CPLEX itself, utilizing the cplex module it can be d... |
In the Flow/Job Shop problems, and other related scheduling problems, a common assumption is that at any given time, a particular job will be being processed on at most one machine (usually... none).
Now imagine a scheduling problem in which a particular job requires multiple "machines" simultaneously, e.g. multiple "r... | The scheduling problem you've described is indeed a variant of "resource constrained scheduling." In this scenario, each job requires multiple resources to be available simultaneously for it to be processed, which introduces complexity in the scheduling process.
In resource constrained scheduling, the challenge is to... | [
{
"from": "human",
"value": "In the Flow/Job Shop problems, and other related scheduling problems, a common assumption is that at any given time, a particular job will be being processed on at most one machine (usually... none).\nNow imagine a scheduling problem in which a particular job requires multiple \... |
Are there any classes of NP-hard combinatorial optimization problems where Second order cone programs (SOCP) gives a better approximation than linear programs (LP)?
I am looking for results in the flavor of Goemans and Williamson's celebrated result of approximating max-cut using semidefinite programs. But I want to u... | Yes, there are certain classes of NP-hard combinatorial optimization problems where second-order cone programming (SOCP) provides better approximation guarantees than linear programming (LP). While many famous approximation algorithms leverage semidefinite programming (SDP), similar approaches with SOCP have been explo... | [
{
"from": "human",
"value": "Are there any classes of NP-hard combinatorial optimization problems where Second order cone programs (SOCP) gives a better approximation than linear programs (LP)? \nI am looking for results in the flavor of Goemans and Williamson's celebrated result of approximating max-cut us... |
Does anyone know of any real-world examples in which supply chain contracts, of the type introduced by Pasternack (1985) and reviewed by Cachon (2003), are actually used in practice? I'm talking about contracts formulated as Stackelberg games, with a transfer payment between the two players, and expected profit functio... | There are indeed real-world examples of supply chain contracts that resemble the contractual frameworks discussed by Pasternack (1985) and reviewed by Cachon (2003). While specific case studies might not always explicitly label their arrangements in terms of Stackelberg games or Nash equilibrium, the fundamental concep... | [
{
"from": "human",
"value": "Does anyone know of any real-world examples in which supply chain contracts, of the type introduced by Pasternack (1985) and reviewed by Cachon (2003), are actually used in practice? I'm talking about contracts formulated as Stackelberg games, with a transfer payment between the... |
In Python's PuLP package, how can I get the value of a decision variable?
For example, if I declare a variable—
x = LpVariable('x_var', cat=LpContinuous)
—then solve the problem, then use
print(x)
Python just outputs:
x_var
How can I get the value of the variable, not its name?
| In the PuLP package for Python, after you solve your optimization problem, you can get the value of a decision variable by using the `.varValue` attribute of the variable. Here's how you can do it:
1. Define your variable.
2. Set up and solve your optimization problem.
3. Access the value using `.varValue`.
Here's an... | [
{
"from": "human",
"value": "In Python's PuLP package, how can I get the value of a decision variable?\nFor example, if I declare a variable—\nx = LpVariable('x_var', cat=LpContinuous)\n\n—then solve the problem, then use \nprint(x)\n\nPython just outputs:\nx_var\n\nHow can I get the value of the variable, ... |
There are two common approximations for the $(r,Q)$ inventory optimization problem that use the EOQ model. It is well known that one of them has a fixed worst-case error bound, but there is confusion in the literature about which one it is.
Approximation 1 (EOQ+SS Approximation): In this approximation, we set $Q$ using... | In the context of the two approximations for the \((r,Q)\) inventory optimization problem, the approximation that has a fixed worst-case error bound is **Approximation 1 (EOQ+SS Approximation)**.
To understand why, we need to analyze the nature of both approximations:
1. **EOQ+SS Approximation**:
- The approach is... | [
{
"from": "human",
"value": "There are two common approximations for the $(r,Q)$ inventory optimization problem that use the EOQ model. It is well known that one of them has a fixed worst-case error bound, but there is confusion in the literature about which one it is.\nApproximation 1 (EOQ+SS Approximation... |
When can we approximate a finite horizon MDP with infinite horizon?
Can we use infinite horizon stochastic shortest path problem on a directed acyclic graph?
| Approximating a finite horizon Markov Decision Process (MDP) with an infinite horizon MDP can be justified under certain conditions. Here are key scenarios where this approximation is reasonable:
1. **Stationarity**: If the transition probabilities and rewards are stationary (do not change over time), the finite horiz... | [
{
"from": "human",
"value": "\nWhen can we approximate a finite horizon MDP with infinite horizon? \nCan we use infinite horizon stochastic shortest path problem on a directed acyclic graph?\n\n"
},
{
"from": "gpt",
"value": "Approximating a finite horizon Markov Decision Process (MDP) with an i... |
I am aware that Benders Decomposition is readily available in CPLEX and in SCIP; but are there any (free) solvers that provide off the shelf stochastic programming MIP algorithms or a nice to work with programming environment ?
| Yes, there are several free solvers and environments that support stochastic programming and MIP algorithms. Here are a few notable options:
1. **COIN-OR (Computational Infrastructure for Operations Research)**:
- **Cbc**: The COIN-OR branch-and-cut solver can be used for MIP problems.
- **Clp**: For linear prog... | [
{
"from": "human",
"value": "I am aware that Benders Decomposition is readily available in CPLEX and in SCIP; but are there any (free) solvers that provide off the shelf stochastic programming MIP algorithms or a nice to work with programming environment ? \n"
},
{
"from": "gpt",
"value": "Yes,... |
What types of organizations/sponsors in the US support applied OR research? I'm familiar with NSF and NIH.
| In addition to the National Science Foundation (NSF) and the National Institutes of Health (NIH), there are several other organizations and sponsors in the United States that support applied operations research (OR) research. Here are some notable ones:
1. **Department of Defense (DoD)**: Various branches of the DoD, ... | [
{
"from": "human",
"value": "What types of organizations/sponsors in the US support applied OR research? I'm familiar with NSF and NIH.\n"
},
{
"from": "gpt",
"value": "In addition to the National Science Foundation (NSF) and the National Institutes of Health (NIH), there are several other organ... |
QUBO (Quadratic Unconstrained Binary Optimization) is the minimization of a quadratic function of binary variables.
It has been used for computer vision, Ramsey numbers, factoring numbers, the integer partitioning problem, the MaxCut problem, and many other problems.
But in the real-world, one would not factor numbers... | QUBO (Quadratic Unconstrained Binary Optimization) is indeed a versatile mathematical framework, and while it might not be the most efficient method for every specific problem, it has found applications in various real-world scenarios where its formulation aligns well with the structure of the problem at hand. Here are... | [
{
"from": "human",
"value": "QUBO (Quadratic Unconstrained Binary Optimization) is the minimization of a quadratic function of binary variables.\nIt has been used for computer vision, Ramsey numbers, factoring numbers, the integer partitioning problem, the MaxCut problem, and many other problems.\nBut in t... |
When dealing with mixed-integer-programs with many symmetric solutions it can take very long until the branch-and-bound-tree search is finished because symmetric optimal solutions cannot be pruned.
What techniques can I use for a MIP with symmetries to overcome these difficulties?
| Dealing with mixed-integer programs (MIPs) that have symmetric solutions can indeed complicate the branch-and-bound process, as the presence of symmetries can lead to an exponential number of equivalent solutions. Here are some techniques that can help manage symmetries and improve the efficiency of solving such proble... | [
{
"from": "human",
"value": "When dealing with mixed-integer-programs with many symmetric solutions it can take very long until the branch-and-bound-tree search is finished because symmetric optimal solutions cannot be pruned. \nWhat techniques can I use for a MIP with symmetries to overcome these difficult... |
Can someone please make a list of optimization problem libraries so that the community can add to and refine it?
I know a few off the top of my head.
| Sure! Here’s a list of some popular optimization problem libraries. Feel free to add more or refine the descriptions as needed:
### General Optimization Libraries
1. **SciPy** (Python)
- A scientific computing library that includes modules for optimization, including linear programming and nonlinear optimization.
... | [
{
"from": "human",
"value": "Can someone please make a list of optimization problem libraries so that the community can add to and refine it?\nI know a few off the top of my head.\n"
},
{
"from": "gpt",
"value": "Sure! Here’s a list of some popular optimization problem libraries. Feel free to ad... |
Suppose we have three variables, $x, y, z \in \mathbb R$. How can we linearize constraints with the following structure?
$$z \geq \min(x, y)$$
$$z \leq \max(x, y)$$
| To linearize the constraints \( z \geq \min(x, y) \) and \( z \leq \max(x, y) \) in a mathematical optimization context, we can make use of auxiliary variables and additional linear inequalities.
1. **Linearizing the minimum constraint \( z \geq \min(x, y) \)**:
The expression \( \min(x, y) \) can be rewritten usin... | [
{
"from": "human",
"value": "Suppose we have three variables, $x, y, z \\in \\mathbb R$. How can we linearize constraints with the following structure?\n$$z \\geq \\min(x, y)$$\n$$z \\leq \\max(x, y)$$\n"
},
{
"from": "gpt",
"value": "To linearize the constraints \\( z \\geq \\min(x, y) \\) and ... |
I am looking for (sources of) convex quadratic programming instances with linear constraints. I am open for both continuous and mixed integer problems, but do not want randomly generated instances.
I am aware of QPLIB, a collection of various types of convex/noncovex, integer/continuous, linearly constrained/quadrati... | If you're seeking sources for convex quadratic programming instances with linear constraints beyond QPLIB and the Maros and Meszaros test set, here are a few additional resources and collections you might find useful:
1. **Netlib Repository**: The Netlib repository contains a variety of test problems for linear and no... | [
{
"from": "human",
"value": "I am looking for (sources of) convex quadratic programming instances with linear constraints. I am open for both continuous and mixed integer problems, but do not want randomly generated instances. \nI am aware of QPLIB, a collection of various types of convex/noncovex, integer... |
When working on an optimization project, what is the typical time division (in percentage) between the various tasks that you have to work on:
Problem understanding/definition (figuring out what is to be
optimised, what are the relevant constraints, etc...)
Interfacing of the data needed to solve the problem (getting ... | The time division for various tasks in an optimization project can vary significantly depending on the specific project, its complexity, and the team's expertise. However, a general guideline for the allocation of time across the different phases might look something like this:
1. **Problem understanding/definition (3... | [
{
"from": "human",
"value": "When working on an optimization project, what is the typical time division (in percentage) between the various tasks that you have to work on:\n\nProblem understanding/definition (figuring out what is to be\noptimised, what are the relevant constraints, etc...)\nInterfacing of t... |
A list of OR Software forums would be nice.
Can someone import the list of OR Software forums from the (now) read-only OR Exchange at https://www.or-exchange.org/questions/9068/or-software-forums ?
Can you please delete extinct software, add additional software, and update links to be current?
| While I can't directly access external websites, I can help you compile a list of popular operations research (OR) software forums based on common knowledge. Below is an updated list of OR software forums, including both established and newer options. I've included brief descriptions of each software where applicable.
... | [
{
"from": "human",
"value": "A list of OR Software forums would be nice. \nCan someone import the list of OR Software forums from the (now) read-only OR Exchange at https://www.or-exchange.org/questions/9068/or-software-forums ?\nCan you please delete extinct software, add additional software, and update li... |
A logical constraint combines linear constraints using
logical operators, such as logical-and, logical-or, negation (that is, not), conditional statements (that is, if ... then ...) to express complex relations between linear constraints.
About chance constraints, it is desired to specify that a certain constraint be s... | Yes, there is a fundamental difference between logical constraints and chance constraints.
### Logical Constraints:
Logical constraints combine linear constraints using logical operators (such as AND, OR, NOT, and conditionals). They are used to express relationships between different constraints in a logical framewor... | [
{
"from": "human",
"value": "A logical constraint combines linear constraints using\nlogical operators, such as logical-and, logical-or, negation (that is, not), conditional statements (that is, if ... then ...) to express complex relations between linear constraints.\nAbout chance constraints, it is desire... |
I have found a solved example of A Stochastic Two-Period Model with No Setup Cost in the book Operational Research by Hillier, 7th edition, that has a lot of complicated calculations to arrive to the solution.
In the following example, $c=$cost of ordering, $h=$cost of holding, $p=$shortage cost and $^0_$ is the optima... | It sounds like you're dealing with a stochastic inventory management problem, particularly focusing on the two-period model. The key challenge in such models is often evaluating the cost functions that arise from the inventory policy, especially when they involve integrals and expected values.
In your case, you are tr... | [
{
"from": "human",
"value": "I have found a solved example of A Stochastic Two-Period Model with No Setup Cost in the book Operational Research by Hillier, 7th edition, that has a lot of complicated calculations to arrive to the solution.\nIn the following example, $c=$cost of ordering, $h=$cost of holding,... |
It is quite frequent that optimization algorithms have quite some parameters controlling their behavior (cooling schedule of a Simulated Annealing, length of the tabu list for a Tabu Search, population size for a Genetic Algorithm, etc...).
One will typically spend quite some time fine tuning those parameters using a "... | The idea of using instance characteristics to guide the selection of optimization algorithm parameters is often referred to as "parameter tuning based on instance features" or "instance-specific parameter tuning." This area has received attention in the literature, particularly in the context of various optimization al... | [
{
"from": "human",
"value": "It is quite frequent that optimization algorithms have quite some parameters controlling their behavior (cooling schedule of a Simulated Annealing, length of the tabu list for a Tabu Search, population size for a Genetic Algorithm, etc...).\nOne will typically spend quite some t... |
Is there any compact resource that includes a list of all academic journals in the OR/MS space, ranked by journal importance? Although there are some helpful features offered by publisher websites such as Elsevier journal finder, I think it would be helpful if such a list were to be added here as well.
| While there isn't a single definitive list of all academic journals in the Operations Research/Management Science (OR/MS) field ranked by importance, there are several resources and rankings that can provide useful insights. Here are a few you might find helpful:
1. **Journal Citation Reports (JCR)**: This resource pr... | [
{
"from": "human",
"value": "Is there any compact resource that includes a list of all academic journals in the OR/MS space, ranked by journal importance? Although there are some helpful features offered by publisher websites such as Elsevier journal finder, I think it would be helpful if such a list were t... |
It is well known that expectation preserves convexity: If $f(x)$ is convex and $Y$ is a random variable, then $\mathbb E[f(x-Y)]$ is convex. This property arises in, for example, inventory theory.
I have not been able to find a good source to cite for this well-known fact. Can anyone suggest one?
(For what it's worth, ... | The property you mentioned—that the expectation of a convex function preserves convexity—can be found discussed in various texts related to convex analysis, probability theory, and optimization. While you may not find a single source that explicitly states the result as you have described it, the underlying principles ... | [
{
"from": "human",
"value": "It is well known that expectation preserves convexity: If $f(x)$ is convex and $Y$ is a random variable, then $\\mathbb E[f(x-Y)]$ is convex. This property arises in, for example, inventory theory.\nI have not been able to find a good source to cite for this well-known fact. Can... |
I have recently learned about the logarithmic mean
$$\frac{x-y}{\ln(x)-\ln(y)},\quad x,y > 0.$$
It is used a lot in chemical engineering optimization models e.g. see slide 15 of Developing spatial branch & bound solvers.
But I wonder if anyone else has come across the logarithmic mean elsewhere in optimization?
Rao and... | The logarithmic mean is indeed a fascinating quantity with applications extending beyond its initial appearances in heat transfer and chemical engineering. Its definition, given by
$$ L(x, y) = \frac{x - y}{\ln(x) - \ln(y)}, \quad x, y > 0, $$
provides a way to measure the mean of two positive numbers in a manner t... | [
{
"from": "human",
"value": "I have recently learned about the logarithmic mean\n$$\\frac{x-y}{\\ln(x)-\\ln(y)},\\quad x,y > 0.$$\nIt is used a lot in chemical engineering optimization models e.g. see slide 15 of Developing spatial branch & bound solvers.\nBut I wonder if anyone else has come across the log... |
CPLEX solves non-convex quadratic problems to global optimality with a global optimality option (in version 12). The relevant pages are
this and this. I benchmarked many solvers, and see that CPLEX is by far the best solver in this problem. I am curious about the algorithms they use. Are these generally hidden, or can... | IBM CPLEX is a proprietary optimization solver, and while the specific algorithms used in CPLEX are not fully disclosed, the company does provide some information about the methods employed for solving various types of optimization problems, including non-convex quadratic problems.
In general, CPLEX uses a combinatio... | [
{
"from": "human",
"value": "CPLEX solves non-convex quadratic problems to global optimality with a global optimality option (in version 12). The relevant pages are \nthis and this. I benchmarked many solvers, and see that CPLEX is by far the best solver in this problem. I am curious about the algorithms th... |
I'm trying to use lazy constraints to solve an optimization problem. In some software such as CPLEX or GUROBI, they have some tools to handle them directly (in the original model) or using callback functions.
I was wondering what is the difference between them?
| Lazy constraints are a powerful technique in integer programming to improve the performance of optimization solvers by allowing them to handle constraints that only need to be enforced when they are violated by the current solution. The main difference between handling lazy constraints directly in the original model ve... | [
{
"from": "human",
"value": "I'm trying to use lazy constraints to solve an optimization problem. In some software such as CPLEX or GUROBI, they have some tools to handle them directly (in the original model) or using callback functions. \nI was wondering what is the difference between them?\n"
},
{
... |
The newer versions of Gurobi include a couple of built-in functionalities for multi-objective optimization: blended objectives and hierarchical (lexicographically ordered) objectives.
Suppose we wanted to minimize $2x + 3.5y + 7z$. Using the "blended" functionality by specifying weights for each objective, the relevan... | The two approaches you mentioned for specifying objectives in Gurobi—using blended objectives versus a manually constructed weighted-sum objective—essentially result in the same optimization problem if you're only working with the same weights.
However, there are some distinctions that might affect algorithmic and com... | [
{
"from": "human",
"value": "The newer versions of Gurobi include a couple of built-in functionalities for multi-objective optimization: blended objectives and hierarchical (lexicographically ordered) objectives. \nSuppose we wanted to minimize $2x + 3.5y + 7z$. Using the \"blended\" functionality by specif... |
Let's say I have an objective function
$$f(x_1,x_2, \cdots, x_n)$$
and $N$ constraints
$$x_i \ge 0. $$
I am trying to solve it with KKT conditions. Now the objective function becomes
$$f(x_1,x_2, \cdots, x_n)+ \mu_i(g_i(x)).$$
I want to solve it using a C program so I solved the equation manually for both cases where... | When you are using the Karush-Kuhn-Tucker (KKT) conditions to solve an optimization problem with constraints, particularly inequality constraints, the approach you should take involves the complementary slackness condition. The complementary slackness states that:
$$ \mu_i g_i(x) = 0 \quad \text{for all } i $$
Where ... | [
{
"from": "human",
"value": "Let's say I have an objective function \n$$f(x_1,x_2, \\cdots, x_n)$$\nand $N$ constraints \n$$x_i \\ge 0. $$\nI am trying to solve it with KKT conditions. Now the objective function becomes\n$$f(x_1,x_2, \\cdots, x_n)+ \\mu_i(g_i(x)).$$\nI want to solve it using a C program so ... |
Qualitatively, in my experience in the solving of large scale MILPs, it is common that binary variables corresponding to "edge possibility" components are frequently chosen. Intuitively, these seem associated with various "critical values" within the problem domain.
This seems to resonate with the approach of Lagrange ... | Using Lagrange multipliers in the context of Mixed Integer Linear Programming (MILP) can be quite insightful, particularly when dealing with large-scale problems that contain a mix of continuous and binary variables. While traditional Lagrange multiplier techniques are primarily associated with continuous optimization ... | [
{
"from": "human",
"value": "Qualitatively, in my experience in the solving of large scale MILPs, it is common that binary variables corresponding to \"edge possibility\" components are frequently chosen. Intuitively, these seem associated with various \"critical values\" within the problem domain.\nThis se... |
Once I found a site on the web containing some classic, original material from around the WW II. One of the topics covered was submarine hunting. But I cannot find that again now ...
So the question is: Where can I find original documents, especially applied ones, from that period? Preferably web sites, but failing th... | There are several excellent resources where you can find original documents and materials related to World War II, particularly concerning submarine hunting and naval operations. Here are some suggested websites and other options:
### Websites
1. **U.S. Naval History and Heritage Command**: This site offers a wealth ... | [
{
"from": "human",
"value": "Once I found a site on the web containing some classic, original material from around the WW II. One of the topics covered was submarine hunting. But I cannot find that again now ... \nSo the question is: Where can I find original documents, especially applied ones, from that pe... |
Suppose we have two binary variables $x$ and $y$. How can we linearize the product $xy$?
| To linearize the product of two binary variables \( x \) and \( y \), we can introduce a new variable \( z \) that represents the product \( xy \). The binary variables \( x \) and \( y \) can take values in \( \{0, 1\} \).
The product \( xy \) behaves in the following manner:
- \( xy = 1 \) if both \( x = 1 \) and \... | [
{
"from": "human",
"value": "Suppose we have two binary variables $x$ and $y$. How can we linearize the product $xy$?\n"
},
{
"from": "gpt",
"value": "To linearize the product of two binary variables \\( x \\) and \\( y \\), we can introduce a new variable \\( z \\) that represents the product \... |
When teaching introductory OR courses I have often found that presenting counter-intuitive or paradox-like results is a great eye-opener for the students. I use these examples and results as a motivation for why we need to learn OR techniques. One of the examples I have used is the Braess Paradox stating that adding a ... | There are several counter-intuitive results and paradoxes in Operations Research that can serve as eye-openers for students. Here are some notable examples:
1. **The Secretary Problem**: This problem deals with the optimal strategy for hiring the best candidate from a pool of applicants. The counter-intuitive result i... | [
{
"from": "human",
"value": "When teaching introductory OR courses I have often found that presenting counter-intuitive or paradox-like results is a great eye-opener for the students. I use these examples and results as a motivation for why we need to learn OR techniques. One of the examples I have used is ... |
In Gurobi the user can change the method parameter in order to force Gurobi to use a particular method for solving MIPs. The user can, amongst others, choose between primal and dual simplex (not changing the parameter will result in Gurobi picking the method for you).
Are there any kinds of problems in which a user sho... | Choosing between primal and dual simplex methods in Gurobi (or any other optimization solver) can be beneficial in specific scenarios. Although Gurobi is designed to automatically select the most appropriate method based on the characteristics of the problem, there are cases where manually specifying a method might yie... | [
{
"from": "human",
"value": "In Gurobi the user can change the method parameter in order to force Gurobi to use a particular method for solving MIPs. The user can, amongst others, choose between primal and dual simplex (not changing the parameter will result in Gurobi picking the method for you).\nAre there... |
How can we measure the tightness of a linear programming relaxation for a mixed integer linear program without using the objective value? I would like to get a measure in terms of the feasible set and independent of the objective function. This is due to the reason that I believe the tightness based on objective value ... | Measuring the tightness of a linear programming (LP) relaxation of a mixed integer linear program (MILP) without considering the objective function is a thought-provoking problem. The tightness of the relaxation fundamentally concerns how well the feasible region of the LP encapsulates the feasible region of the MILP, ... | [
{
"from": "human",
"value": "How can we measure the tightness of a linear programming relaxation for a mixed integer linear program without using the objective value? I would like to get a measure in terms of the feasible set and independent of the objective function. This is due to the reason that I believ... |
Many problem areas (like vehicle routing, hub location, ...) have certain "classic" benchmark instances that are used heavily in the literature to compare the numerical strength of optimisation algorithms.
While this increases comparability of different algorithms, it also increases the danger of tailoring the algorith... | The concern you're raising about overfitting optimization algorithms to specific benchmark instances is a valid one and has been noted in various domains of optimization research. Here are several approaches and strategies from the literature that aim to mitigate this issue:
1. **Diverse Benchmark Sets**: Instead of r... | [
{
"from": "human",
"value": "Many problem areas (like vehicle routing, hub location, ...) have certain \"classic\" benchmark instances that are used heavily in the literature to compare the numerical strength of optimisation algorithms.\nWhile this increases comparability of different algorithms, it also in... |
I am working on a branch-and-cut algorithm, and I have spent quite some effort into improving the branching decisions that are made by commercial solvers, such as CPLEX and Gurobi. However, it was never successful: the standard branching by Cplex and Gurobi combined with the slight subtleties you can choose (focus lowe... | Your observations about the performance of custom branching rules versus those implemented in commercial solvers like CPLEX and Gurobi are not uncommon. Indeed, these solvers are backed by extensive research and years of development, and their branching strategies are the result of a sophisticated blend of heuristics, ... | [
{
"from": "human",
"value": "I am working on a branch-and-cut algorithm, and I have spent quite some effort into improving the branching decisions that are made by commercial solvers, such as CPLEX and Gurobi. However, it was never successful: the standard branching by Cplex and Gurobi combined with the sli... |
Which sources are out there that provide reliable and fast MDP solvers? I prefer that the library is callable from C++ but other languages are fine too.
There is indeed an abundance of repositories on github that at first seem to be appropriate for this task. However, the ones I found so far were either buggy, super s... | There are several reliable and efficient libraries for solving Markov Decision Processes (MDPs) that provide interfaces for C++ or other programming languages. Here are some notable ones:
### C++ Libraries
1. **GSL (GNU Scientific Library)**:
- Although it is primarily a numerical library, GSL provides utilities f... | [
{
"from": "human",
"value": "Which sources are out there that provide reliable and fast MDP solvers? I prefer that the library is callable from C++ but other languages are fine too. \nThere is indeed an abundance of repositories on github that at first seem to be appropriate for this task. However, the ones... |
When working with Gurobi, CPLEX and the like the user can choose between many different APIs, for example Python, C++, R, Java, Matlab or C. Some of these API are more efficient than others. For example, in R the user does not need to declare any data types like int, str and the like. R tries to find this out on its ow... | When working with optimization solvers like Gurobi or CPLEX, the choice of API (e.g., Python, C++, R, etc.) can indeed affect the model-building phase due to differences in programming language characteristics and execution models. However, once a model has been built and is passed to the solver, the execution of the s... | [
{
"from": "human",
"value": "When working with Gurobi, CPLEX and the like the user can choose between many different APIs, for example Python, C++, R, Java, Matlab or C. Some of these API are more efficient than others. For example, in R the user does not need to declare any data types like int, str and the... |
What are the advantages of using the generic callback compared to the old user/lazy callbacks within a branch-and-cut framework?
IBM states on its website that the major benefit of the new generic callback is that it allows for dynamic search strategies. However, most researchers still solve their MIPs with a branch-an... | The introduction of the generic callback mechanism in optimization solvers, particularly within the context of the branch-and-cut framework, brings several advantages compared to the older user or lazy callbacks. While your observations are accurate regarding some of the limitations of generic callbacks, there are seve... | [
{
"from": "human",
"value": "What are the advantages of using the generic callback compared to the old user/lazy callbacks within a branch-and-cut framework?\nIBM states on its website that the major benefit of the new generic callback is that it allows for dynamic search strategies. However, most researche... |
I have been trying to implement a variant of LNS on a graph for TSP. One of the ways that I can define a neighborhood for TSP is to find $k$-shortest path between two nodes. But the choice of these nodes are random. I have two questions:
Are there better ways to define neighborhood?
Is there a way to find a promising ... | When implementing a variant of Large Neighborhood Search (LNS) for the Traveling Salesman Problem (TSP), the choice of neighborhood definition is critical for the performance of your algorithm. Here are some suggestions and answers to your questions:
### Better Ways to Define Neighborhood
1. **Swap Neighborhoods**: A... | [
{
"from": "human",
"value": "I have been trying to implement a variant of LNS on a graph for TSP. One of the ways that I can define a neighborhood for TSP is to find $k$-shortest path between two nodes. But the choice of these nodes are random. I have two questions:\n\nAre there better ways to define neighb... |
Suppose we have a binary or continuous variable $x$, a binary variable $y$, and a constant $b$, and we want to enforce a relationship like
If $x \gtreqless b$, then $y = 1$.
How can we write this using one or more linear constraints?
| To enforce the relationship where if \( x \gtreqless b \), then \( y = 1 \), we can express this relationship using linear constraints.
Given:
- \( x \) is a binary or continuous variable.
- \( y \) is a binary variable (taking values 0 or 1).
- \( b \) is a constant.
We want the constraint to enforce that if \( x <... | [
{
"from": "human",
"value": "Suppose we have a binary or continuous variable $x$, a binary variable $y$, and a constant $b$, and we want to enforce a relationship like \n\nIf $x \\gtreqless b$, then $y = 1$.\n\nHow can we write this using one or more linear constraints?\n"
},
{
"from": "gpt",
"v... |
We are coding a Benders decomposition using CPLEX/Concert (C++) and we are having some troubles to generate a feasibility cut because we are not sure how to get an extreme ray of the dual for a primal infeasible problem.
According to this CPLEX FAQ, there are two ways to do that:
To solve the problem using Primal Simp... | Benders decomposition is a powerful technique for solving large-scale optimization problems, but generating valid cuts can indeed be tricky, particularly when dealing with primal infeasibility. Let's clarify how to obtain an extreme ray of the dual for a primal infeasible problem in CPLEX using C++.
### 1. Using `getD... | [
{
"from": "human",
"value": "We are coding a Benders decomposition using CPLEX/Concert (C++) and we are having some troubles to generate a feasibility cut because we are not sure how to get an extreme ray of the dual for a primal infeasible problem.\nAccording to this CPLEX FAQ, there are two ways to do tha... |
I am solving (or say, trying to find good solutions for) an arbitrary combinatorial optimization problem, think of it as a Vehicle Routing Problem with a bunch of side constraints that are not relevant for this question. I coded an Adaptive Large Neighborhood Search (ALNS) for it.
I want to explore "easy" opportunitie... | Certainly! Here are several approaches to parallelizing Adaptive Large Neighborhood Search (ALNS) that can enhance speed without requiring extensive coding changes:
### 1. Parallelizing the Destruction and Repair Phases
In ALNS, the destruction and repair operations can be naturally parallelized since they are often i... | [
{
"from": "human",
"value": "I am solving (or say, trying to find good solutions for) an arbitrary combinatorial optimization problem, think of it as a Vehicle Routing Problem with a bunch of side constraints that are not relevant for this question. I coded an Adaptive Large Neighborhood Search (ALNS) for i... |
I am studying about sequential decision making and I am willing to know if there is any course which is recorded and is publically available covering topics in dynamic programming (DP), reinforcement learning (RL), bandit problem, approximate DP\RL, online optimization?
| There are several publicly available courses and resources covering topics related to sequential decision-making, dynamic programming (DP), reinforcement learning (RL), bandit problems, approximate DP/RL, and online optimization. Here are a few noteworthy options:
1. **Reinforcement Learning Specialization (Coursera)*... | [
{
"from": "human",
"value": "I am studying about sequential decision making and I am willing to know if there is any course which is recorded and is publically available covering topics in dynamic programming (DP), reinforcement learning (RL), bandit problem, approximate DP\\RL, online optimization?\n"
},... |
If you have strategic planning problems like hub location problems, the input data often consists of average values for shipping volumes etc.
When planning capacities, it is risky to ignore the distribution of the input data (if your hub is large enough for average capacities, you may get huge problems when volumes are... | Yes, deriving a "most likely" distribution using methods like entropy maximization can be a sensible approach when dealing with strategic planning problems such as hub location problems, especially in cases where the underlying distribution of input data (like shipping volumes) is not known.
Entropy maximization is a ... | [
{
"from": "human",
"value": "If you have strategic planning problems like hub location problems, the input data often consists of average values for shipping volumes etc.\nWhen planning capacities, it is risky to ignore the distribution of the input data (if your hub is large enough for average capacities, ... |
For an evolutionary extensive form game is the use of multi-agent systems a necessity or can more traditional approximate Nash equilibria and mean-field interactions suffice?
Few games can be represented completely by a simple tree and solved exactly from the outset, or even to the point where a direction to the course... | The question of whether multi-agent systems (MAS) are a necessity in solving evolutionary extensive form games, or if more traditional approaches like approximate Nash equilibria and mean-field interactions can suffice, is complex and largely dependent on the specific characteristics of the game being analyzed.
### Co... | [
{
"from": "human",
"value": "For an evolutionary extensive form game is the use of multi-agent systems a necessity or can more traditional approximate Nash equilibria and mean-field interactions suffice?\nFew games can be represented completely by a simple tree and solved exactly from the outset, or even to... |
Suppose I give a solver (CPLEX, Gurobi, SCIP or anything else) an IP which is a reformulation of a stable set problem (or vertex cover problem or coloring problem) of some graph, is there a way I can tell the solver that it is a stable set or vertex cover instance? Will that enhance the heuristics used by the solver?
| Most commercial solvers like CPLEX, Gurobi, and SCIP do not have a built-in mechanism that allows users to directly inform them that a given integer programming (IP) formulation corresponds to a specific combinatorial problem such as a stable set, vertex cover, or graph coloring. However, there are a few ways to provid... | [
{
"from": "human",
"value": "Suppose I give a solver (CPLEX, Gurobi, SCIP or anything else) an IP which is a reformulation of a stable set problem (or vertex cover problem or coloring problem) of some graph, is there a way I can tell the solver that it is a stable set or vertex cover instance? Will that enh... |
What is the difference between the two common optimization models for electricity systems, optimal power flow (OPF) and economic dispatch (ED)?
I've heard people say that ED is just a multi-period version of OPF. I've also heard people say that OPF includes power flow constraints while ED only includes constraints on t... | The distinction between Optimal Power Flow (OPF) and Economic Dispatch (ED) is an important one in the field of power system optimization. Here's a detailed clarification of both concepts:
### Economic Dispatch (ED)
1. **Purpose**: The primary objective of ED is to determine the optimal output levels of generation un... | [
{
"from": "human",
"value": "What is the difference between the two common optimization models for electricity systems, optimal power flow (OPF) and economic dispatch (ED)?\nI've heard people say that ED is just a multi-period version of OPF. I've also heard people say that OPF includes power flow constrain... |
I'm building a mixed-integer programming model, and the solver is experiencing a very long run time. So I tried to solve the LP relaxation to the MIP, and I get a similarly long solve time, which surprises me. I was wondering what might make an LP take a long time to solve, without any integrality constraints.
| There are several reasons why a linear programming (LP) relaxation of a mixed-integer programming (MIP) model might take a long time to solve, even in the absence of integrality constraints. Here are some possible factors that could contribute to the long solve times:
1. **Problem Size**: The number of variables and c... | [
{
"from": "human",
"value": "I'm building a mixed-integer programming model, and the solver is experiencing a very long run time. So I tried to solve the LP relaxation to the MIP, and I get a similarly long solve time, which surprises me. I was wondering what might make an LP take a long time to solve, with... |
At first glance both approaches appear to be very similar.
What are the major differences between integer programming and constraint programming?
| Integer programming (IP) and constraint programming (CP) are both optimization techniques used to solve combinatorial problems, but they have different approaches, applications, and characteristics. Here are the major differences between the two:
### 1. **Problem Representation**:
- **Integer Programming**: Problem... | [
{
"from": "human",
"value": "At first glance both approaches appear to be very similar. \nWhat are the major differences between integer programming and constraint programming?\n"
},
{
"from": "gpt",
"value": "Integer programming (IP) and constraint programming (CP) are both optimization techniq... |
I have a directed social network and as a preprocessing step I need to calculate the longest path lengths for each node. Longest path problem is NP-hard as far as I know but I've seen dynamic programming methods for DAGs. Is there such a method for general networks with cycles? All arc weights are one.
| You are correct that the longest path problem in general graphs (including directed graphs with cycles) is NP-hard, which means there is no known polynomial-time solution to find the longest path in such graphs. However, if you are dealing with directed graphs that do not contain cycles (Directed Acyclic Graphs, or DAG... | [
{
"from": "human",
"value": "I have a directed social network and as a preprocessing step I need to calculate the longest path lengths for each node. Longest path problem is NP-hard as far as I know but I've seen dynamic programming methods for DAGs. Is there such a method for general networks with cycles? ... |
I am solving two-stage optimization problems in the form of
$$\max_{x \in X}\min_{y \in Y} f(x,y),$$
where $f(x,y)$ is the solution of a mixed integer linear program (MIP). As the constraints of the MIP link the $x$ and $y$ elements, it is clear that we cannot apply the classic minimax theorem to interchange the mini... | The problem you've described relates to two-stage optimization and the interplay between maximization and minimization in the presence of interdependent decision variables. Given the nature of your problem, where \( f(x,y) \) arises from a mixed integer linear program (MIP), there are indeed some insights that could he... | [
{
"from": "human",
"value": "I am solving two-stage optimization problems in the form of \n$$\\max_{x \\in X}\\min_{y \\in Y} f(x,y),$$\n where $f(x,y)$ is the solution of a mixed integer linear program (MIP). As the constraints of the MIP link the $x$ and $y$ elements, it is clear that we cannot apply the ... |
Given $n$ items, I want to select a set items $S\subseteq\{1,2,\dots,n\}$ that maximize profit. The profit of item $i\in\{1,2,\dots,n\}$ is given by $p_i$ and may be assumed to be non-negative.
Additionally, I have a set $\mathscr{F}$ of forbidden subsets. That is, if $F \in \mathscr{F}$, then $S$ is not allowed to con... | The problem you are facing is similar to a combinatorial optimization problem with additional constraints due to the forbidden subsets. Here are several approaches you can consider to tackle the problem, both for theoretical improvement and practical implementation:
### 1. Integer Programming Formulation
Your current ... | [
{
"from": "human",
"value": "Given $n$ items, I want to select a set items $S\\subseteq\\{1,2,\\dots,n\\}$ that maximize profit. The profit of item $i\\in\\{1,2,\\dots,n\\}$ is given by $p_i$ and may be assumed to be non-negative.\nAdditionally, I have a set $\\mathscr{F}$ of forbidden subsets. That is, if ... |
I was wondering if there is any repository of datasets for supply chain problems. For example, the UC Irvine Machine Learning Repository contains datasets for ML, and MIPLIB is used as a benchmark for MIP and IP problems. But I cannot find a similar dataset for general supply chain problems. Can you please direct me to... | As of my last knowledge update in October 2023, there isn't a single comprehensive repository specifically dedicated to datasets for supply chain problems similar to the UC Irvine Machine Learning Repository for machine learning. However, there are several sources and repositories where you can find datasets relevant t... | [
{
"from": "human",
"value": "I was wondering if there is any repository of datasets for supply chain problems. For example, the UC Irvine Machine Learning Repository contains datasets for ML, and MIPLIB is used as a benchmark for MIP and IP problems. But I cannot find a similar dataset for general supply ch... |
My background is a bachelor in mathematics. I learned basics OR on my own using the following :
Introduction to Operations Research by F. Hillier and G. Lieberman
Integer programming by l. Wolsey
How to Solve It: Modern Heuristics by D. Fogel and Z. Michalewicz
Constraint programming online courses available at Course... | Given your strong background in mathematics and operations research, as well as your coding skills in Python, C++, and Java, you're well-positioned to dive deeper into the field of deploying solutions and managing end-to-end projects. Here's a structured approach to consider, along with recommendations:
### 1. Softwar... | [
{
"from": "human",
"value": "My background is a bachelor in mathematics. I learned basics OR on my own using the following :\n\nIntroduction to Operations Research by F. Hillier and G. Lieberman\nInteger programming by l. Wolsey\nHow to Solve It: Modern Heuristics by D. Fogel and Z. Michalewicz\nConstraint ... |
When solving a Linear Optimization model (or Linear Program), there are a lot of solution approaches.
Just to name a few:
Primal Simplex
Dual Simplex
Ellipsoid Method (as if)
Interior Point Method
When should I use the Interior Point Method?
Is it just a matter of trial-and-error numerically or are ... | The choice of solution method for a Linear Optimization (or Linear Programming) model can indeed depend on various factors, and while many solvers have automatic selection mechanisms, understanding when to use specific methods can be beneficial for advanced users or when working with particularly challenging problems. ... | [
{
"from": "human",
"value": "When solving a Linear Optimization model (or Linear Program), there are a lot of solution approaches. \nJust to name a few: \n\nPrimal Simplex \nDual Simplex \nEllipsoid Method (as if) \nInterior Point Method\n\nWhen should I use the Interior Point Method?\n Is it ju... |
I am working at a hostel which uses a reservation system for each room and the beds in the room (e.g. $14$ beds in one room, bed numbers $1-14$.) When we get bookings for multiple people, we assign beds as available, which can cause problems in the future.
An example of our system is seen here (click to enlarge images)... | To automate the process of repositioning reservations in a hostel to ensure that guests are placed in sequential beds, we can approach the problem using an algorithmic strategy. Here is a proposed method:
### Step 1: Data Representation
Represent the hostel layout and reservations in a structured format, like a two-di... | [
{
"from": "human",
"value": "I am working at a hostel which uses a reservation system for each room and the beds in the room (e.g. $14$ beds in one room, bed numbers $1-14$.) When we get bookings for multiple people, we assign beds as available, which can cause problems in the future.\nAn example of our sys... |
Is there a variant of integer programs for which Gomory's cutting plane algorithm demonstrably takes a superpolynomial number of iterations?
| Yes, there exist variants of integer programming problems for which Gomory's cutting plane algorithm can take a superpolynomial number of iterations. An example of this is in the context of specific classes of integer linear programs (ILPs).
One well-known result is that for certain types of integer programming proble... | [
{
"from": "human",
"value": "Is there a variant of integer programs for which Gomory's cutting plane algorithm demonstrably takes a superpolynomial number of iterations?\n"
},
{
"from": "gpt",
"value": "Yes, there exist variants of integer programming problems for which Gomory's cutting plane al... |
My question concerns recovering a primal optimal solution while performing dual sub gradient ascent. Denoting by $y_i$ the dual multiplier in the $i^{\text{th}}$ iteration, let
\begin{equation}
x_i = \underset{x \in X}{\operatorname{arg\,min}} \,L(x, y_i)
\end{equation}
where $L(x, y_i) = f(x) + y_i^T g(x)$ is the La... | To compute an accumulation point from a finite number of primal solutions generated during dual subgradient ascent, you can follow a method that constructs a convex combination of the solutions obtained at each iteration. Here’s a step-by-step outline and example code to implement this in practice.
### Step-by-step Ou... | [
{
"from": "human",
"value": "My question concerns recovering a primal optimal solution while performing dual sub gradient ascent. Denoting by $y_i$ the dual multiplier in the $i^{\\text{th}}$ iteration, let \n\\begin{equation}\nx_i = \\underset{x \\in X}{\\operatorname{arg\\,min}} \\,L(x, y_i) \n\\end{equat... |
I built my model on Python and am passing it to Gurobi to solve the problem. The presolve phase of Gurobi cuts down ~80% of the integer/binary variables and I am wondering if I should rethink my formulation.
| The fact that Gurobi's presolve phase is able to cut down a significant portion of your integer/binary variables (around 80%) suggests that your model might have some redundancies or that certain variables are not necessary for the optimal solution. Here are a few considerations to evaluate and potentially refine your ... | [
{
"from": "human",
"value": "I built my model on Python and am passing it to Gurobi to solve the problem. The presolve phase of Gurobi cuts down ~80% of the integer/binary variables and I am wondering if I should rethink my formulation.\n"
},
{
"from": "gpt",
"value": "The fact that Gurobi's pre... |
I often spend much, much, more time QAing and debugging my code than I do actually writing the optimization problem or shaping my data. Are there any tools or techniques to make it easier? I am asking specifically about the challenges operations research adds to programming.
Here is an example: Let's say we wanted to s... | The challenges you're experiencing are common in the field of operations research (OR), especially when dealing with nonlinearities, constraints, and the iterative nature of building and refining optimization models. Here are several tools and techniques that might help streamline your QA and debugging process:
### 1.... | [
{
"from": "human",
"value": "I often spend much, much, more time QAing and debugging my code than I do actually writing the optimization problem or shaping my data. Are there any tools or techniques to make it easier? I am asking specifically about the challenges operations research adds to programming.\nHe... |
It turns out that extending MILP with any of the constraints $y=\lfloor x\rfloor$, $y=\lceil x\rceil$, $0 < x$, or $x\notin \mathbb{Z}$ is 'equally hard'.
(see my answer here, and below)
Expressing strict inequalities exactly in MILP is something that is generally considered not to be possible with standard solvers i... | The observations you've made about extending Mixed-Integer Linear Programming (MILP) formulations to include certain constraints—specifically those related to integrality and strict inequalities—have indeed been noted in the literature on optimization.
Your understanding that certain extensions such as \( y = \lfloor... | [
{
"from": "human",
"value": "It turns out that extending MILP with any of the constraints $y=\\lfloor x\\rfloor$, $y=\\lceil x\\rceil$, $0 < x$, or $x\\notin \\mathbb{Z}$ is 'equally hard'. \n (see my answer here, and below)\nExpressing strict inequalities exactly in MILP is something that is generally cons... |
Often times I have this issue. For example, I need to have a non-negative coefficient, say $c_0$, in my optimization problem (otherwise the problem is not convex). Moreover, to obtain this $c_0$ I analytically solve a problem in MATLAB. This analytic solution also satisfies $c_0 \geq 0$ but returns $c_0 = 10^{-5}$ and ... | Your experience is a common challenge faced in the fields of optimization and operations research, especially when dealing with numerical precision and the implications of floating-point arithmetic. Here are some insights that may help you understand the issues you're encountering and how to address them:
### 1. Preci... | [
{
"from": "human",
"value": "Often times I have this issue. For example, I need to have a non-negative coefficient, say $c_0$, in my optimization problem (otherwise the problem is not convex). Moreover, to obtain this $c_0$ I analytically solve a problem in MATLAB. This analytic solution also satisfies $c_0... |
The two-commodity flow formulation is introduced by Baldacci et al. (2004). It is known for its good performance and providing a tight lower bound.
I searched the literature, but couldn't find any study that expands this formulation on asymmetric digraphs.
Do you think it is possible to expand this formulation on asy... | Yes, it is indeed possible to expand the two-commodity flow formulation for asymmetric digraphs. The two-commodity flow formulation provides a framework for modeling network flow problems where two commodities are simultaneously transported through the network. While most foundational work in this area might focus on s... | [
{
"from": "human",
"value": "The two-commodity flow formulation is introduced by Baldacci et al. (2004). It is known for its good performance and providing a tight lower bound. \nI searched the literature, but couldn't find any study that expands this formulation on asymmetric digraphs. \nDo you think it is... |
I would like to know how the (job) market for operations research works. My dream would be to work as a freelancer in the area of math programming. I have a PHD and several years of proven experience in programming, modeling, bioinformatics, and optimization.
There are some blogs and websites by small companies or indi... | The market for operations research (OR) can be quite dynamic and offers opportunities for both traditional employment and freelance work, especially given your strong background in math programming, programming, modeling, bioinformatics, and optimization. Here are some insights on how to navigate the freelance market i... | [
{
"from": "human",
"value": "I would like to know how the (job) market for operations research works. My dream would be to work as a freelancer in the area of math programming. I have a PHD and several years of proven experience in programming, modeling, bioinformatics, and optimization.\nThere are some blo... |
As part of my research in statistics, I recently stumbled upon this paper1 which provides an operational perspective into linear models.
In simple linear regression, quadratic programming can be used to solve the problem where for least squares, the objective is $$\begin{array}{ll}
\min & Q(\beta) = (Y-X\beta)'(Y-X\bet... | The challenge of estimating parameters in nonlinear regression models, such as the Michaelis-Menten model, is a well-studied area in statistics. Transforming a nonlinear model to a linear one can indeed introduce complications, particularly regarding the distribution of errors and the assumptions underlying ordinary le... | [
{
"from": "human",
"value": "As part of my research in statistics, I recently stumbled upon this paper1 which provides an operational perspective into linear models.\nIn simple linear regression, quadratic programming can be used to solve the problem where for least squares, the objective is $$\\begin{array... |
What is the difference between Lagrangian relaxation and Lagrangian decomposition? Are they the same thing?
| Lagrangian relaxation and Lagrangian decomposition are related concepts in the field of optimization, particularly in dealing with complex constraints in mathematical programming, but they are not the same thing. Here are the key differences and characteristics of each method:
### Lagrangian Relaxation
1. **Purpose**... | [
{
"from": "human",
"value": "What is the difference between Lagrangian relaxation and Lagrangian decomposition? Are they the same thing?\n"
},
{
"from": "gpt",
"value": "Lagrangian relaxation and Lagrangian decomposition are related concepts in the field of optimization, particularly in dealing ... |
I am working on a very large optimisation problem. All variables are continuous, the objective is linear and the constraints convex, but I have many such constraints (on the order of $2^n$ — actually, one constraint per possible solution to a given combinatorial problem with $n$ variables). Due to the large number of c... | In dealing with large-scale optimization problems, particularly those involving a significant number of constraints (on the order of \(2^n\)), it is essential to establish methods for managing the constraints effectively. Here are some strategies and insights that can help in bounding the number of lazy constraints gen... | [
{
"from": "human",
"value": "I am working on a very large optimisation problem. All variables are continuous, the objective is linear and the constraints convex, but I have many such constraints (on the order of $2^n$ — actually, one constraint per possible solution to a given combinatorial problem with $n$... |
This question comes from the perspective of an MSc student new to both OR and programming OR problems in a MIP framework. My research has led me down this path of needing to program an optimization model using CPLEX and I am not entirely sure whether I should invest my time into learning the MATLAB code with a CPLEX ex... | It's great to hear that you are venturing into optimization and exploring the CPLEX solver! Both MATLAB with CPLEX and CPLEX ILOG Optimization Studio (often just called CPLEX) are powerful tools for solving mixed-integer programming (MIP) problems. Here are some insights into the advantages and disadvantages of each op... | [
{
"from": "human",
"value": "This question comes from the perspective of an MSc student new to both OR and programming OR problems in a MIP framework. My research has led me down this path of needing to program an optimization model using CPLEX and I am not entirely sure whether I should invest my time into... |
Suppose we have the constraint
$$a_1x_1 + \cdots + a_nx_n \gtreqless b,$$
where $a_i$ and $b$ are constants and $x_i$ are decision variables. Suppose also that we want the constraint to hold if $y=1$ (where $y$ is a binary decision variable), and we don’t care whether it holds if $y=0$.
How can we accomplish this?
| To accomplish this, we can incorporate the binary decision variable \( y \) into the constraint using a big-M formulation. The idea is to enforce the constraint \( a_1x_1 + a_2x_2 + \ldots + a_nx_n \geq b \) (or \( \leq b \)) only when \( y = 1 \). When \( y = 0 \), we allow the constraint to be relaxed.
Let's denote ... | [
{
"from": "human",
"value": "Suppose we have the constraint\n$$a_1x_1 + \\cdots + a_nx_n \\gtreqless b,$$\nwhere $a_i$ and $b$ are constants and $x_i$ are decision variables. Suppose also that we want the constraint to hold if $y=1$ (where $y$ is a binary decision variable), and we don’t care whether it hol... |
Does anyone know of a problem previously believed to be NP hard, to be solved nowadays in polynomial time optimally?
| Yes, there are a few problems that were previously believed to be NP-hard but have since been proven to be solvable in polynomial time. One notable example is the **Maximum Flow Problem**.
Originally, problems in network flow theory, like the Maximum Flow Problem, were not well understood in terms of their computatio... | [
{
"from": "human",
"value": "Does anyone know of a problem previously believed to be NP hard, to be solved nowadays in polynomial time optimally?\n"
},
{
"from": "gpt",
"value": "Yes, there are a few problems that were previously believed to be NP-hard but have since been proven to be solvable i... |
The question here discusses the two different use of "big-M method", where one of them is the big-M in logical constraints and linearization in (mixed-)integer programming problems (that's what I'm interested in).
Then, the question here asks about the effects of big-M and I'm aware that a choice of a very large M (of... | Choosing an appropriate value for the big-M constant in mixed-integer programming (MIP) formulations is crucial for the efficiency and effectiveness of the model. The big-M method is often employed to linearize logical constraints, but selecting a poor value for M can lead to significant issues. Here are some guideline... | [
{
"from": "human",
"value": "The question here discusses the two different use of \"big-M method\", where one of them is the big-M in logical constraints and linearization in (mixed-)integer programming problems (that's what I'm interested in). \nThen, the question here asks about the effects of big-M and I... |
The Machine Learning community has largely benefited from modern GPUs and several large companies are investing in new dedicated hardware.
Unfortunately, academic and commercial mathematical optimization solvers still lack support for GPUs. They have support for distributed or shared memory computing environment (e.g.,... | ### Which GPU, if any, should I get for mathematical optimization?
When selecting a GPU for mathematical optimization tasks, you should consider the following:
1. **Compatibility**: Ensure that the optimization algorithms you plan to use can leverage GPU acceleration. Many algorithms, particularly those in linear pro... | [
{
"from": "human",
"value": "The Machine Learning community has largely benefited from modern GPUs and several large companies are investing in new dedicated hardware.\nUnfortunately, academic and commercial mathematical optimization solvers still lack support for GPUs. They have support for distributed or ... |
Given $P = \{x\in\mathbb R^n: Ax \leq b\}$, I want to decide if $(\mathbb Z^\ell \times \mathbb R^{n-\ell}) \cap \operatorname{relint}(P)$ is non-empty.
Is this problem in NP?
One idea is to check if $P_\varepsilon \cap (\mathbb Z^\ell \times \mathbb R^{n-\ell})$ is non-empty by solving a MILP, where $P_\varepsilon ... | To determine whether the set \((\mathbb Z^\ell \times \mathbb R^{n-\ell}) \cap \operatorname{relint}(P)\) is non-empty, we can indeed leverage the idea of perturbing the constraints to ensure we remain within the interior of the polyhedron \(P\).
### Strategy
1. **Understanding \(\operatorname{relint}(P)\)**: The rela... | [
{
"from": "human",
"value": "Given $P = \\{x\\in\\mathbb R^n: Ax \\leq b\\}$, I want to decide if $(\\mathbb Z^\\ell \\times \\mathbb R^{n-\\ell}) \\cap \\operatorname{relint}(P)$ is non-empty. \nIs this problem in NP?\n\nOne idea is to check if $P_\\varepsilon \\cap (\\mathbb Z^\\ell \\times \\mathbb R^{n... |
Cross-posted at Stats.SE (aka Cross Validated)
I am working on a problem which involves optimizing for minimum power consumption in a large compressor network interconnected through pipelines (think of a connected graph with nodes as compressors and arcs as pipelines). I need to impose a constraint when two or more com... | When dealing with optimization problems that involve constraints based on physical systems, it's common to encounter the need to relax strict equality constraints due to variability or uncertainty in the data. In your case, since you're trying to model compressor discharge pressures that should ideally be equal but may... | [
{
"from": "human",
"value": "Cross-posted at Stats.SE (aka Cross Validated)\nI am working on a problem which involves optimizing for minimum power consumption in a large compressor network interconnected through pipelines (think of a connected graph with nodes as compressors and arcs as pipelines). I need t... |
When trying a decomposition technique such as column generation, most of the times my approach is to look at the problem and then:
Decide what a column should represent
Write the Master Problem
Write the expression of the reduced cost, the subproblem, and use the duals of the Master Problem to generate a new column of... | While automating the creation of master and subproblems in column generation can be quite challenging, especially because the structure of these problems is often context-specific, there are some generic approaches and frameworks that can help streamline the process. Below are a few strategies that you could consider:
... | [
{
"from": "human",
"value": "When trying a decomposition technique such as column generation, most of the times my approach is to look at the problem and then:\n\nDecide what a column should represent\nWrite the Master Problem\nWrite the expression of the reduced cost, the subproblem, and use the duals of t... |
I am working on an implementation of Cuckoo Search for a set covering problem. After reading some papers I cannot understand how choosing a random solution (new cuckoo) works. What I see is that solutions are represented in 2 dimensions and by Lévy flight it picks a random solution.
I am not sure how to implement this.... | In Cuckoo Search, the process of generating a new solution (or cuckoo) often involves two key concepts: **Lévy flights** and how to represent your solution space. Since you're working on a set covering problem, it's essential to first define how you represent solutions in your specific problem domain.
### Representati... | [
{
"from": "human",
"value": "I am working on an implementation of Cuckoo Search for a set covering problem. After reading some papers I cannot understand how choosing a random solution (new cuckoo) works. What I see is that solutions are represented in 2 dimensions and by Lévy flight it picks a random solut... |
I am trying to find a reference (or a reformulation) of a variant of the multiple Traveling Salesman Problem, where multiple agents need to visit each vertex in a graph with minimal cost.
Most of the literature that I found requires that only one agent needs to visit each vertex, but I am looking to generalize this to ... | The problem you are describing appears to fall under a generalization of the Multiple Traveling Salesman Problem (mTSP), sometimes referred to as the Multiple Vehicle Routing Problem (MVRP) or the Team Orienteering Problem (TOP), depending on the specific constraints and objectives you wish to impose. Here are some ave... | [
{
"from": "human",
"value": "I am trying to find a reference (or a reformulation) of a variant of the multiple Traveling Salesman Problem, where multiple agents need to visit each vertex in a graph with minimal cost.\nMost of the literature that I found requires that only one agent needs to visit each verte... |
"All models are wrong, but some are useful" - George E. P. Box
I usually work on what one could call operational problems. There I usually do not have too much trouble figuring out the level of detail needed for a model to provide value. However, when I happen to work on tactical/strategic problems I struggle more to f... | Determining the appropriate level of detail in a model, especially for tactical or strategic problems, is a nuanced process. Here are some guidelines to help you strike the right balance between model detail and usefulness:
### 1. Define the Objective Clearly
- **Understand the Purpose**: Begin by clearly articulating... | [
{
"from": "human",
"value": "\"All models are wrong, but some are useful\" - George E. P. Box\nI usually work on what one could call operational problems. There I usually do not have too much trouble figuring out the level of detail needed for a model to provide value. However, when I happen to work on tact... |
What is the most common package for discrete-event simulation in the OR community?
I have found SimPy package.
| SimPy is indeed one of the most popular packages for discrete-event simulation, particularly in the operations research (OR) and academic communities. It is a Python-based library that provides a simple and intuitive way to model and simulate processes and systems using discrete-event simulation.
In addition to SimPy,... | [
{
"from": "human",
"value": "What is the most common package for discrete-event simulation in the OR community?\nI have found SimPy package. \n"
},
{
"from": "gpt",
"value": "SimPy is indeed one of the most popular packages for discrete-event simulation, particularly in the operations research (... |
It’s often said that “Benders decomposition is Dantzig-Wolfe applied to the dual”. How can this statement be made precise? I know that in Dantzig-Wolfe, cuts are added in one-to-one correspondence with the extreme points of the primal feasible region—is Benders like this but for dual extreme points? I’m interested in e... | The statement that "Benders decomposition is Dantzig-Wolfe applied to the dual" points to a fundamental connection between two well-known techniques in mathematical programming, emphasizing their respective roles in primal and dual formulations. To clarify this statement and draw parallels between the two methods, we c... | [
{
"from": "human",
"value": "It’s often said that “Benders decomposition is Dantzig-Wolfe applied to the dual”. How can this statement be made precise? I know that in Dantzig-Wolfe, cuts are added in one-to-one correspondence with the extreme points of the primal feasible region—is Benders like this but for... |
At first, I should apologize if this question is not relevant to this website, but since there are some researchers from the management science community, I ask the question here.
I have data for the demand of 1200 products for 25 periods. That is, 1200 time series. I want to predict the demand for each product for th... | Your approach to demand forecasting is certainly innovative, especially given the challenges associated with modeling a large number of time series. Since you're not achieving satisfactory results with machine learning methods like random forests, XGBoost, and CatBoost, here are several alternative strategies you could... | [
{
"from": "human",
"value": "At first, I should apologize if this question is not relevant to this website, but since there are some researchers from the management science community, I ask the question here. \nI have data for the demand of 1200 products for 25 periods. That is, 1200 time series. I want to ... |
I am looking for journals which do not focus on OR or a subfield (math programming, simulation, logistics, etc.) but still publish a few OR papers on a regular basis. What are some journals which would fit this criteria?
An example is Socio-Economic Planning Sciences, which isn't explicitly an OR journal, but publishes... | Here are some journals that do not explicitly focus on Operations Research (OR) but often publish papers that utilize OR methods or techniques:
1. **Decision Support Systems**: This journal focuses on the design and implementation of decision-making systems, which can include OR methodologies, but also encompasses a b... | [
{
"from": "human",
"value": "I am looking for journals which do not focus on OR or a subfield (math programming, simulation, logistics, etc.) but still publish a few OR papers on a regular basis. What are some journals which would fit this criteria?\nAn example is Socio-Economic Planning Sciences, which isn... |
I'm specifically looking for real applications of the following form of MIP:
$$\max\,Cx$$
subject to:
\begin{align}Ax +By &= D\\Ax &= E\\By &= F\\ x &\ge 0\\ y &\in \mathbb{Z}^{+}\end{align}
Part of these constraints can be excluded. The important thing for me is to have integer (or binary) variables in the constra... | The mixed-integer programming (MIP) model you've described features a maximization objective with constraints that involve both continuous and integer (or binary) variables. This type of MIP can be applied in various real-world scenarios across different domains. Here are some applications where similar models may be f... | [
{
"from": "human",
"value": "I'm specifically looking for real applications of the following form of MIP:\n$$\\max\\,Cx$$\nsubject to:\n\\begin{align}Ax +By &= D\\\\Ax &= E\\\\By &= F\\\\ x &\\ge 0\\\\ y &\\in \\mathbb{Z}^{+}\\end{align}\nPart of these constraints can be excluded. The important thing fo... |
The following exercise is in the book Operational Research by Hillier, 7th edition, page 978.
In this exercise $p$ and $p$ are the stockout and holding cost parameters, respectively. $^0_i$ is the optimal value for the order up to level. $\alpha$ is the parameter $\lambda$ of the exponential distribution. In this case ... | To approach this inventory problem, we need to analyze both the optimal one-period policy and the optimal two-period policy under the conditions specified.
### Part (a): Finding the Optimal One-Period Policy
In a one-period inventory model with exponential demand, we can determine the optimal order-up-to level \( y_1... | [
{
"from": "human",
"value": "The following exercise is in the book Operational Research by Hillier, 7th edition, page 978.\nIn this exercise $p$ and $p$ are the stockout and holding cost parameters, respectively. $^0_i$ is the optimal value for the order up to level. $\\alpha$ is the parameter $\\lambda$ of... |
When talking about column generation algorithms, the main example is the cutting stock problem. I'm aware that variations of vehicle routing problem (VRP) can be solved using a column generation approach. What are some other problems where column generation-based approaches have been applied successfully? References ar... | Column generation is a powerful optimization technique that has been successfully applied to various combinatorial and linear programming problems beyond the cutting stock problem and vehicle routing problems (VRP). Here are some notable examples:
1. **Set Covering Problem**: Column generation is often used to solve l... | [
{
"from": "human",
"value": "When talking about column generation algorithms, the main example is the cutting stock problem. I'm aware that variations of vehicle routing problem (VRP) can be solved using a column generation approach. What are some other problems where column generation-based approaches have... |
This is a very basic question about a very basic model, but I can't come up with a satisfactory answer.
In the economic order quantity (EOQ) model, let $\lambda$ be the demand rate (items/year), $h$ be the holding cost (\$/item/year), and let $K$ be the fixed cost per order. The optimal solution is
$$Q^* = \sqrt{\frac... | Your reasoning about the units for \( K \) in the Economic Order Quantity (EOQ) model is indeed insightful and gets to the heart of understanding how these costs are defined and used in the model.
1. **Understanding the Definitions**:
- \( \lambda \): the demand rate in items per year \((\text{item/year})\).
- \... | [
{
"from": "human",
"value": "This is a very basic question about a very basic model, but I can't come up with a satisfactory answer.\nIn the economic order quantity (EOQ) model, let $\\lambda$ be the demand rate (items/year), $h$ be the holding cost (\\$/item/year), and let $K$ be the fixed cost per order. ... |
Is the "reverse search" algorithm of David Avis the state-of-the-art method for finding discrete solutions to a system of linear inequalities? If it is not, then what is?
For $m$ inequalities in $d$ dimensions, the most expensive part of Avis's algorithm seems to complete in $\mathcal{O}(md^2)$ time, although it has to... | The "reverse search" algorithm developed by David Avis is indeed an effective method for finding discrete solutions to systems of linear inequalities. This method is particularly useful in the context of combinatorial optimization, especially for enumerating all vertices of polyhedra defined by linear inequalities.
Ho... | [
{
"from": "human",
"value": "Is the \"reverse search\" algorithm of David Avis the state-of-the-art method for finding discrete solutions to a system of linear inequalities? If it is not, then what is?\nFor $m$ inequalities in $d$ dimensions, the most expensive part of Avis's algorithm seems to complete in ... |
In combinatorial optimization, on what type of problem a local search may lead to better & quicker solutions than usual mixed-integer programming and constraint programming techniques ?
By type of problem, I mean :
Field of application
Type of objective
Number and type of decision variables
Number and type of constrai... | Local search techniques can be particularly effective in certain types of combinatorial optimization problems, especially when compared to traditional mixed-integer programming (MIP) and constraint programming (CP) methods. Here are some characteristics of problems where local search may yield better and quicker soluti... | [
{
"from": "human",
"value": "In combinatorial optimization, on what type of problem a local search may lead to better & quicker solutions than usual mixed-integer programming and constraint programming techniques ?\nBy type of problem, I mean :\n\nField of application\nType of objective\nNumber and type of ... |
I have a set of linearized constraints that are modelled using big-Ms. Now, it is, of course, common knowledge to make the value of M and small as possible in order to provide tighter LP relaxations of the (e.g.) MIP we are solving.
I am looking for some examples where this tightening of the 'M' is really useful from ... | Tightening the value of the big-M parameter in mixed-integer programming (MIP) formulations can indeed significantly influence computational performance in certain situations, despite common perceptions that a small M often does not matter. Here are a few scenarios where a tighter M can lead to noticeable improvements:... | [
{
"from": "human",
"value": "I have a set of linearized constraints that are modelled using big-Ms. Now, it is, of course, common knowledge to make the value of M and small as possible in order to provide tighter LP relaxations of the (e.g.) MIP we are solving. \nI am looking for some examples where this ti... |
I am trying to find extreme rays of a polyhedral cone using polymake. My understanding is that in a cone, every feasible solution is also a ray and an extreme ray is a ray that cannot be written as the convex combination of two other rays. The methods RAYS and LINEARITY_SPACE give me some rays that generate the cone bu... | In polymake, the method `RAYS` indeed returns a set of rays that generate the cone, but it does not necessarily guarantee that all returned rays are extreme rays. An extreme ray, as you noted, cannot be expressed as a nontrivial convex combination of other rays.
To find the extreme rays of a polyhedral cone, you can u... | [
{
"from": "human",
"value": "I am trying to find extreme rays of a polyhedral cone using polymake. My understanding is that in a cone, every feasible solution is also a ray and an extreme ray is a ray that cannot be written as the convex combination of two other rays. The methods RAYS and LINEARITY_SPACE gi... |
Combinatorial Benders decomposition is a mathematical programming technique consisting into dividing a problem into a master problem and a sub problem.
The master problem is solved to optimality (or alternatively for a MIP, every time a potential new best solution is identified while branching) and then the associated ... | Combinatorial Benders decomposition is indeed a powerful technique for solving large-scale optimization problems, especially those that can be decomposed into a master problem and a subproblem with distinct characteristics. For the effective application of this method, certain characteristics in the original problem ar... | [
{
"from": "human",
"value": "Combinatorial Benders decomposition is a mathematical programming technique consisting into dividing a problem into a master problem and a sub problem.\nThe master problem is solved to optimality (or alternatively for a MIP, every time a potential new best solution is identified... |
I would like to compare human solutions for OR-problems to optimal solutions. Therefore, I am looking for a dataset with the manual solutions computed by a human. I do not have a specific problem in mind, any problem would be nice.
Does such a dataset exist?
| Yes, there are several datasets available that include both human-generated solutions and optimal solutions for various operational research (OR) problems. Here are a few resources where you might find such datasets:
1. **The OR Library**: The OR Library maintained by Professor Julia Wright at the University of Edinbu... | [
{
"from": "human",
"value": "I would like to compare human solutions for OR-problems to optimal solutions. Therefore, I am looking for a dataset with the manual solutions computed by a human. I do not have a specific problem in mind, any problem would be nice. \nDoes such a dataset exist?\n"
},
{
"f... |
I am looking for previous OR challenges.
My goal is :
Applying my knowledge while solving problems suggested in those competitions; and/or
If possible, reading solutions posted by participants.
I learned a lot about machine learning (ML) by reading solutions to Kaggle competitions. I couldn't find any similar websi... | You're right that operational research (OR) challenges don't have the same visibility as machine learning competitions like those on Kaggle. However, there are several platforms and resources where you can find OR-related challenges and solutions:
1. **OR-Exchange**: This is a Q&A platform for OR problems. You can fin... | [
{
"from": "human",
"value": "I am looking for previous OR challenges.\nMy goal is :\n\nApplying my knowledge while solving problems suggested in those competitions; and/or\n\nIf possible, reading solutions posted by participants.\n\n\nI learned a lot about machine learning (ML) by reading solutions to Kaggl... |
Which non-textbook variants (primal/dual, revised) and techniques (e.g. steepest-edge) do professional solvers like Xpress, CPLEX, CLP use, to get the best out of the simplex algorithm?
This question is about the Simplex algorithm for LP only, not other parts of software packages (such as presolve and crash)
| Professional solvers for linear programming (LP) problems, such as Xpress, CPLEX, and CLP, employ various non-textbook variants and techniques to enhance the performance of the simplex algorithm. Below are some of the commonly used variants and techniques:
### Non-Textbook Variants:
1. **Revised Simplex Method**:
... | [
{
"from": "human",
"value": "Which non-textbook variants (primal/dual, revised) and techniques (e.g. steepest-edge) do professional solvers like Xpress, CPLEX, CLP use, to get the best out of the simplex algorithm? \nThis question is about the Simplex algorithm for LP only, not other parts of software packa... |
I want to solve the Asymmetric TSP for a large-scale problem for an industrial application where the company cannot buy a commercial software license. For their applications, it is very important to find good solutions within a short computation time. What are the main algorithms (either approximation, randomized, heur... | Solving the Asymmetric Traveling Salesman Problem (ATSP) and the Vehicle Routing Problem (VRP) efficiently requires a balance between solution quality and computation time. Here are some recommended algorithms and approaches you can consider, categorized by type:
### Asymmetric Traveling Salesman Problem (ATSP)
1. **... | [
{
"from": "human",
"value": "I want to solve the Asymmetric TSP for a large-scale problem for an industrial application where the company cannot buy a commercial software license. For their applications, it is very important to find good solutions within a short computation time. What are the main algorithm... |
I am looking for a publicly available real world demand data to compare the performance of some algorithms. The dataset should include some products with data of a sufficiently long period of time. I know the FoodMart dataset, whose structure you can find described on this page; but, this dataset includes a small numbe... | There are several publicly available datasets that you can use for demand forecasting and performance comparison of algorithms. Here are a few options that may suit your needs:
1. **Kaggle Datasets**: Kaggle hosts a variety of datasets, and many users publish datasets related to sales and demand. You can explore the f... | [
{
"from": "human",
"value": "I am looking for a publicly available real world demand data to compare the performance of some algorithms. The dataset should include some products with data of a sufficiently long period of time. I know the FoodMart dataset, whose structure you can find described on this page;... |
I've been using CPLEX on the NEOS server, via Pyomo, to solve a binary program I'm working on.
NEOS is amazing, but the documentation is somewhat lacking on the Pyomo side, so I haven't been able to find out how I can access the solve time for an optimisation run. If I use a local solver on my machine (CBC) I can acce... | When using CPLEX on the NEOS server via Pyomo, you can retrieve the solver time by accessing the solver's results. While NEOS may not provide direct access to all the output details in the same way you would with a local solver like CBC, you can still access the solve time through the solver object after you call the s... | [
{
"from": "human",
"value": "I've been using CPLEX on the NEOS server, via Pyomo, to solve a binary program I'm working on. \nNEOS is amazing, but the documentation is somewhat lacking on the Pyomo side, so I haven't been able to find out how I can access the solve time for an optimisation run. If I use a l... |
Setup
I have a binary $N \times N$ matrix. The objective is to minimize the number of ones in the matrix, subject to various constraints. This leads to symmetries by rotating 90 degrees and/or mirroring (along the axis and diagonals). Here's an example:
Given the objective function, this matrix has the same objective ... | Yes, you can simplify or find more efficient ways to state symmetry-breaking constraints to minimize the number of ones in a binary matrix. Your current constraints are indeed effective at breaking symmetries, but they might be over-constrained or can be expressed in a more compact way. Below are some alternative appro... | [
{
"from": "human",
"value": "Setup\nI have a binary $N \\times N$ matrix. The objective is to minimize the number of ones in the matrix, subject to various constraints. This leads to symmetries by rotating 90 degrees and/or mirroring (along the axis and diagonals). Here's an example:\n\nGiven the objective ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.