Subset selection in regression
The following is a well-know application of branch-and-bound: select the k best independent variables to include in the regression. Often best means: best residual sum of squares. When we use a...
View ArticleLinearizations in a Land-Use Planning Model
There are often multiple ways to formulate a problem. With a modeling language it is easy to try out quickly different formulations. This can have a significant effect on the performance of the...
View ArticleSQL as optimization language?
https://nathanbrixius.wordpress.com/2015/09/24/sql-as-an-optimization-modeling-language/Of course the answer is no. SQL is good to deal with data tables but trying to shoehorn optimization models into...
View ArticleDifferent but close
In a GAMS model we calculated some numbers. I expected them to be the same. I saw:OK, small difference. Let’s increase the number of decimals:No cigar. All right. The difference is beyond the 8th...
View ArticleFinding equidistant Pareto optimal points
When tracing an efficient frontier sometimes the pictures indicate that points are not very evenly distributed:In the paper http://www.sciencedirect.com/science/article/pii/S0895717710006424an...
View ArticleMCP Constraints
When expressing complementarity models it is often needed to “flip” equations around to match the sign of a dual. E.g. a ≥ equation can be paired to a positive dual variable. This sometimes leads to...
View ArticlePiecewise linear functions in MIP models
Here is a simple case of a piecewise linear function. It shows economies of scale: shipping more leads to lower unit transportation costs.One way of modeling this is using a set of binary variables...
View ArticleSimple Nash-Cournot equilibrium via EMP
Model OLIGOMCP from the model library is a well-known small Nash-Cournot equilibrium problem, expressed as an MCP:See also:...
View ArticleDiscontinuous piecewise linear interpolation in MIPs
I received some questions and feedback from the post here: http://yetanothermathprogrammingconsultant.blogspot.com/2015/10/piecewise-linear-functions-in-mip-models.html. Here are some “back to basics”...
View ArticleExample of supplier selection with discounts
I am working on a supplier selection model, so it is useful to see how my formulation compares to what others have come up with. The next paper is not really identical to my situation but it is useful...
View ArticleConfiguration files
Often I use INI files (https://en.wikipedia.org/wiki/INI_file) for configuration settings of programs I develop. For programs that need more complicated data structures one could use XML or JSON. Here...
View ArticleGurobi 6.5: some really good performance improvements
From: http://www.gurobi.com/products/whats-new/whats-new-in-the-latest-version
View ArticleThis can be done much better
Counter example of how to present a model in a paper:I suspect the reason why I often see names like x1,x2,… being used, is that some textbooks present models that way. In this respect computer science...
View ArticleGlobal optimality
Not sure if this is a bug or this just comes with the territory (i.e. numerics). When I solve this nasty MINLP with Baron using an allowed gap optcr=0 I get:Solution = 0.922492168619502 found at...
View ArticleBLEIC
I never came across this acronym: BLEIC: Boundary and Linear Equality/Inequality Constrained Optimization. I usually use “linearly constrained NLP”.I saw this in:...
View ArticleLinearization by enumeration for a small reliability problem
In http://yetanothermathprogrammingconsultant.blogspot.com/2015/11/global-optimality.html a small MINLP model is shown that does not solve that easily. Here is it again:The model and the data comes...
View ArticleBin Packing but different
From http://cs.stackexchange.com/questions/48510/help-wrapping-my-head-around-a-combinatorial-optimization-problem/50179#50179:Here's the problem I'm trying to solve:I have a bunch of widgets, whose...
View ArticleSQLite and Excel/VBA
In the comment section of http://yetanothermathprogrammingconsultant.blogspot.com/2013/10/gdx2sqlite.html it is mentioned that Excel and VBA (via ODBC) has troubles with fields that are declared as...
View ArticleOptimality of a small MINLP model
When I read a paper I often try quickly to implement the example and see if I can solve it. Here is a small MINLP model related to RRAP (Reliability-Redundancy Allocation Problem). It is very similar...
View Article