Quantcast
Channel: Yet Another Math Programming Consultant
Browsing all 804 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

FICO Xpress Mosel is now FREE and OPEN

Little bit of old news:https://community.fico.com/community/fico-optimization-community/blog/2018/01/04/fico-xpress-mosel-is-now-free-and-open:Now. if the Xpress solver would also be open source, that...

View Article


MATLAB: LP more expensive than MIP?

A strange report:The model has variables that assume automatically 0-1 values. When we throw the model into intlinprog it solves much faster than when solving as an LP (using linprog).Solve as...

View Article


Image may be NSFW.
Clik here to view.

A difficult MIP construct: counting consecutive 1's

table.blueTable { border: 1px solid #1C6EA4; background-color: #EEEEEE; text-align: left; border-collapse: collapse; margin-left:auto; margin-right:auto; } table.blueTable td, table.blueTable th {...

View Article

Image may be NSFW.
Clik here to view.

Covariance Matrix not positive definite in portfolio models

When solving mean-variance portfolio optimization models, the majority of solvers will require the variance-covariance matrix is positive definite. In theory, any covariance matrix is positive...

View Article

Image may be NSFW.
Clik here to view.

Regular Expression Tester

On a regular basis (pun intended), I am using regular expressions for simple parsing tasks. Writing or debugging a regular expression is not always super easy. I found that web site [1] is quite...

View Article


Image may be NSFW.
Clik here to view.

Piecewise nonlinear functions

In [1] a question is posed how we can model the piecewise nonlinear function depicted below: Model the dashed line h(x)We want to model that the costs are represented by the function \(h(x)\) (the...

View Article

Image may be NSFW.
Clik here to view.

Knapsack + packing: a difficult MIQCP

Packing Circles in a RectangleThe problem of placing the maximum number of circles (or spheres) with radius \(r\) in a container (e.g. rectangle or box) such that there is no overlap is a well-known...

View Article

Image may be NSFW.
Clik here to view.

Multi-start Non-linear Programming: a poor man's global optimizer

If a nonlinear optimization problem is non-convex, a local solver typically will find a locally optimal solution. If the model is not too large, we may find a globally optimal solution by invoking a...

View Article


100% accurate

Hi Erwin,I have few doubts i found you in search of regularization topic I have done multiple regression and i observed there is over fitting in my predicted resultsMy  CEO need 100% accurate predicted...

View Article


Image may be NSFW.
Clik here to view.

Overdoing a plot

Lots of things are going on here. This is a visualization of a packing problem: place 50 circles in a square that is as small as possible, Things are solved by 50 solves by SNOPT with a random starting...

View Article

Indicator constraints

In [1] a question is posed about how to implement the implication:\[ x+y\le 5 \Rightarrow \delta = 1\] Here \(\delta \in \{0,1\}\) is a binary variable. Indicator constraints are of the form:\[ \delta...

View Article

Image may be NSFW.
Clik here to view.

Coming to Excel: custom R plots

Interesting. Excel's charts are looking a bit dated compared to what we can do with ggplot, plot.ly or Tableau. This will make a good step in the right direction.Sankey Chart in ExcelReferencesCustom R...

View Article

Image may be NSFW.
Clik here to view.

Facility location model Q&A

Dear Erwin, I always follow and read your interesting posts. Thank you so much for your useful posts on your blogs. For the learning purposes, I was trying to code you MIQCP sample on your blog but not...

View Article


Image may be NSFW.
Clik here to view.

Find the differences: RStudio local or server

Typically I run RStudio locally. For a project we are experimenting with RStudio Server, which allows you to run Rstudio itself on a server and use it from a web browser. The GUI looks virtually...

View Article

Image may be NSFW.
Clik here to view.

Excel Power Query CSV read somewhat slow

Reading a large CSV file into Excel's data model is somewhat slow compared to R:Reading CSV into data modelI used some VBA code for the timing. The only thing we do is to load data into the data model...

View Article


Image may be NSFW.
Clik here to view.

DIY Presolve

table.blueTable { border: 1px solid #1C6EA4; background-color: #EEEEEE; text-align: left; border-collapse: collapse; margin-left:auto; margin-right:auto; } table.blueTable td, table.blueTable th {...

View Article

Image may be NSFW.
Clik here to view.

Knapsack + Packing: Combinatorial Benders Decomposition

table.blueTable { border: 1px solid #1C6EA4; background-color: #EEEEEE; text-align: left; border-collapse: collapse; margin-left:auto; margin-right:auto; } table.blueTable td, table.blueTable th {...

View Article


The real optimization problem

Dear Erwin,Good Morning!!.I am doing my Master's Degree in Computer Science.Currently, I am doing some research on Facility Location Problem Optimization. I came across your answers on stackoverflow...

View Article

Image may be NSFW.
Clik here to view.

Sparsest solution: a difficult MIP

The problem of finding a solution vector that is as sparse as possible can be formulated as a MIP.I was looking at solving an underdetermined  problem \[Ax=b\] i.e. the number of rows \(m\) is less...

View Article

select weights to maximize count

In [1] a problem that is simple at first sight. Looking a bit further there are some interesting angles.The example data set is:---- 27 PARAMETER a j1 j2 j3i1 0.8700.7300.410i2 0.8200.7300.850i3...

View Article
Browsing all 804 articles
Browse latest View live