Share via

Constrained Ordering in Excel

Anonymous
2019-03-19T19:30:40+00:00

I'm basically trying to use excel to solve a constrained optimization problem without any optimization.

Here's the problem: I have five people and five work stations. I want each person to visit each work station once with no repeats. There are a couple other constraints, such as "person 1 must visit an odd workstation first", etc, but these vary on a couple scenarios I'm trying to create. 

I've tried working with the solver on this, which I'm not that familiar with. I've create a 5x5 matrix, with each row representing a person and each column representing a shift of work. The number in each (row,column) would then be the work station a person is at at a given time, The basic constraints are:

-all values are integers

-all values are 1<=x<=5

-all rows satisfy alldifferent

-all columns satisfy alldifferent

-any other basic constrains we throw in

I've done this, and curiously the solver keeps throwing out solutions where the alldifferent constraints are not respected. Am I doing something illegal here?

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

3 answers

Sort by: Most helpful
  1. Anonymous
    2019-03-23T02:04:16+00:00

    Excel 2010 to 2019 Power Query (aka Get and Transform)

    Oodles of random solutions.

    No formulas, no Solver, no VBA macro.

    Might also be of interest to Sudoku players.

    http://www.mediafire.com/file/hl12w1r1ushna4n/03_19_19.xlsx/file

    http://www.mediafire.com/file/zjdd8rkajrc9ac8/03_19_19.pdf/file

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2019-03-22T02:42:52+00:00

    Edit:  Solver solution deleted due to lack of interest by poster.

    Was this answer helpful?

    0 comments No comments
  3. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more