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: Oldest
  1. Anonymous
    2016-09-22T14:26:40+00:00

    Dana, thanks for the explanation. A few clarifications:

    1. This bug is NOT present equally on all Excel 2016 for Mac. I'm a professor and for each case some of my students with Macs suffer from this problem while others do not. I own three Macs, all with identical and latest OS and Excel, and with this spreadsheet two of them have a problem while one does not. The calculation errors sometimes even differ every time I run it ON THE SAME MACHINE. So the bug is deeper than just software coding, and possibly involve hardware level architectures. Also this is just one example; I have multiple other spreadsheets that have run perfectly for years, yet in this year become infeasible or are solved wrong on Excel 2016 for Mac.
    2. It is likely that as you mentioned the problem is caused by how different CPUs handle accuracies. Still I believe this is considered a bug, because NONE of my students running Excel for PC has this issue. In fact many of them run Windows on their Macs using Bootcamp.
    3. I think your explanation that there are multiple "solutions" to the equality constraint does not stand. One equation with two unknowns of course has multiple solutions and these solutions have nothing to do with the optimization's solution. In fact an optimization problem handles an equality constraint by solving one of the variables and removing it from the formulation (along with the equality constraint).
    4. This is a linear program. One nice feature of linear programs is that it's never stuck at a local optimum. In fact there are no local optima because objectives are "straight". So any (correct) solution is guaranteed globally optimal. The only exception is that an objective is "flat", in which case all solutions along a constraint line/surface are equivalent and optimal, which is clearly not the case in this problem.
    5. I understand if Excel for Mac is low priority. But MS pushes Excel updates almost on a weekly basis, yet they completely ignore my bug report in every channel there is. I don't want to teach with this buggy pice of software again next year and so I'll keep harassing them. Thank you all for your inputs and help. If you know a way to draw some MS engineer's attention here I'd appreciate it very much.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2016-09-22T15:17:55+00:00

    Hi.  Were you able to get the solution by changing the starting values of E4:G5  ?

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2016-09-22T15:37:04+00:00

    If you know a way to draw some MS engineer's attention here I'd appreciate it very much.

    Someone from the Excel Analytics engineering team will be following up with you.  I forwarded your revised link to them first thing this morning.

    Check your private messages for my contact information, so I can forward yours.

    Was this answer helpful?

    0 comments No comments