Excel 2016 for Mac Solver horrible bug (example posted)

Anonymous
2016-09-15T02:47:48+00:00

Ok first of all I discovered that Microsoft does not want to know its products have bugs. There is no way to report an Excel bug. I'm aware of connect.microsoft.com but no Office or Excel channel exists there. The question "how do I report an Excel bug" is floating all over the internet with no answer.

Solver in Excel 2016 for Mac is completely broken. It sometimes says a linear program is infeasible while on a PC Solver finds the optimal solution in a blink of an eye. It sometimes says an optimal solution is found yet even some constraints are being violated. This has been happening since the preview version to the latest update today on 9/14. I have a file at hand that if solved in Excel for Mac, Solver says it's infeasible, yet on a PC it will happily solve the problem. Again Microsoft doesn't want to listen to complaints so I can't even post that file to this thread.

If anyone from MS is reading this, it's time to abandon the ship.

========

EDIT: ANYONE FROM MS READING THIS? DO YOUR JOB AND AT LEAST CONTACT ME! LOOK AT THE PROGRAM SOLVED CORRECTLY ON A PC YET INFEASIBLE OR OUTRIGHT WRONG ON A MAC! SHAME ON YOU FOR SHIPPING SUCH BUGGY SOFTWARE AND IGNORING BUG REPORTS!

https://www.dropbox.com/s/dsmfbxdk6lquk0u/FEMA.xlsx?dl=0

ON PC

ON MAC 1

ON MAC 2

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
Answer accepted by question author
Anonymous
2016-11-17T00:43:32+00:00

Good news! We fixed some issues with Solver to address reports of incorrect results that were being generated on Excel for Mac. The fix is available in build 15.28 (161025) or later. Please update your Office and let us know if you continue to encounter any issues.

Freya

Office Newsroom

Was this answer helpful?

7 people found this answer helpful.
0 comments No comments
Answer accepted by question author
Anonymous
2017-01-21T17:23:13+00:00

Yes, I used the Mac to arrive at the conclusion that your model does not have 1 optimal solution!

Notice that "Super  Gas" and "Crude 3" can slide along 0-500, and "Reg Gas" can slide along 3500-4000 (inversely, with changes to the other mix).   All at Optimal value of: 375,000

I am not an expert, so here are just my observations.

Solver for Windows has been around for a long time, and Solver for Mac is rather "new"

In Solver models, and Op research as well, it is never good programming practice to place functions on the Right-Hand-Side  (RHS)

Solver for Windows has improved a lot over the years.  The program use to give up very quickly at the first sign of confusion.  It's been a lot better the last 2 or so revisions.

As my guess, the reason for the Mac confusion is that Solver is using "Finite Differences" to calculate a derivative to make its best guess to the RHS.   When it uses the new values, the RHS has jumped and changed values.  It then repeats the process.  The RHS target is always moving.  It's a dog chasing it's tail.   Solver for Mac, my belief, is that there is not enough logic in the program yet to reduce the confusion.  It will quit easily, and just go back to its initial starting values by default.  (Your all 0's)

It was apparent to me how to fix your Mac Model.

You have 3 constraints <= 5000.   The 5000 is fixed, so we can leave that alone.

You have 7 other constraints entered using 2 constraints into Solver.

The 7th constraint is ok, but we will change that to be consistent.

The quickest solution for your model is to delete the 3 ">=" and 4 "<=" constraints.

Go ahead and keep your constraint area for readability, but we will not use it.

Make another column for constraints.   My preference is to use F(x) >= 0, so that's what I'll use here.

For your first 3 constraints, we will use the formulas you have, but make it:

= LHS - RHS

For the last 4, we will use

= RHS - LHS.

So now, we will enter just 1 constraint for all 7.

New 7 >= 0

Because the model is written slightly better, Mac Solver won't get confused and quit.

I quickly get the "other valid solution"

One "could argue" that the Mac solution is slightly better, although they are equal.

Mac is suggesting making 5 items instead of 6.

So, we are saving wear and tear of making a 6th item (super gas/ crude3)

There is also more man-power setting up a 6th manufacturing item.

You also may have higher shipping costs for shipping a 6th item at the low 500 volumn.

Perhaps save money by shipping 1 item at 4000 volumn.   Etc.

Just for education, your model looked good to test the "Math" differences based on the inefficient model.

You have 1 columns of Sumproduct(), and another column of using "SUM"

I might have removed all 14 cells, and  just used 7.  Here's how I would have written the 7 constraints.

It's basically the same math:

=SUMPRODUCT((B12:D12),(H4:J4)-10)

=SUMPRODUCT((B13:D13),(H4:J4)-8)

=SUMPRODUCT((B14:D14),(H4:J4)-6)

=SUMPRODUCT(B12:D12,1-(H5:J5))

=SUMPRODUCT(B13:D13,2-(H5:J5))

=SUMPRODUCT(B14:D14,1-(H5:J5))

=D28-B28

I would have used 1 constraint:

All7  >= 0

When I do it this way on the Windows version, I get the same solution as the Mac because the Excel math is a little different.

Anyway, I hope this helps.

= = = = =

HTH   :>)

Dana

Was this answer helpful?

0 comments No comments

49 additional answers

Sort by: Most helpful
  1. Anonymous
    2017-01-20T21:39:09+00:00

    Hello Freya,

    I am afraid that at least some of the bugs in Solver under Excel 2016 for Mac are still very much present. I am not sure if these are the same issues as the ones originally reported by icefox1983, but what I am observing seems very much related to what (s)he reported: I am able to solve the model perfectly fine under Excel 2016 for Windows, and this model was also working perfectly fine with Excel 2011 for Mac. I am also able to solve this model under Excel 2016 for Mac using Open Solver. So this issue is entirely related to the combination of Solver + Excel for Mac 2016.

    I included details below, and a link to a minimum working example. I would appreciate a timely reply. I have been teaching classes for several years at various universities (MIT, Stanford, U Penn) focusing on optimization models in Excel and Solver. But with such issues, I am afraid I have to fully agree with icefox1983's conclusion. It is extremely disappointing to see the level of support that Solver (and also VBA, etc.) are getting under Mac. The time has probably come to look more seriously for alternatives.

    Icefox1983 --- thank you for starting this thread, and for reporting these issues.

    Sincerely, 

       Dan Iancu

    DETAILS:

    I am running Excel 2016 for Mac, version 15.28 (161115). Here is a link to a minimum working example that exhibits the bug:

    https://www.dropbox.com/s/ton0r5yxm5o82p3/solver\_mac\_issues.xlsx?dl=0

    This is a simple linear optimization model, and the optimal objective value should be 375,000. The model runs perfectly fine under Windows, and it also used to run fine under older versions of Solver/Office for Mac (e.g., Office 2011). However, under Office 2016 for Mac, the optimal solution obtained (**using Simplex LP**) is extremely sensitive to the initial starting solution. For instance, setting the initial starting solution to all zeros makes Solver actually stop and report an optimal solution of all zeros! Changing the initial solution does result in some minimal progress for Solver, but it almost never reports the true optimum. Interestingly, Solver fails to report the optimum even when setting the initial solution as the optimal one. It goes without saying that this should never be the case **with Simplex LP**, since this is a linear optimization problem, so there should be no issues of local optimality.

    Solving the exact same model using Open Solver (in Office 2016 for Mac) does return the optimal value of 375,000.

    Was this answer helpful?

    0 comments No comments
  2. Jim G 134.1K Reputation points MVP
    2016-11-17T17:27:40+00:00

    I am using Excel version 15.29 build 161115 in Mac OS 10.12 latest Sierra update. 

    When I ran Solver, it ran to completion and did not generate the Constraints Infeasible error. Perhaps I didn't perform the same steps you did, but I think Freya is right - the bug seems to be fixed :-)

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2016-09-24T18:52:43+00:00

    >..  It works on windows, but not in Mac

    Hi Jose.  Just to let you know, your Mac problem worked just fine for me with the solution I mentioned above.

    Was this answer helpful?

    0 comments No comments