+ Reply to Thread
Results 1 to 5 of 5

Unable to create linear function to use Simplex LP

  1. #1
    Registered User
    Join Date
    10-17-2021
    Location
    Singapore
    MS-Off Ver
    2019
    Posts
    1

    Unable to create linear function to use Simplex LP

    I am trying to use excel solver Simplex LP to find the maximum value of 3 cells. It is an assignment problem where I will have 3 results, which is the time each machine spends to produce the goods. I will need to minimize the makespan, thus i will have to minimize the largest value of the 3. I used the MAX function but it is not linear and continuous. Is there any way i can represent that info such that I can use Simplex LP?


    Screenshot_1.png
    Screenshot_2.png

  2. #2
    Valued Forum Contributor Hydraulics's Avatar
    Join Date
    07-15-2018
    Location
    Udine - Italy
    MS-Off Ver
    Office 365
    Posts
    372

    Re: Unable to create linear function to use Simplex LP

    You can calculate the average and then add 6 variables (3 positive and 3 negative) to keep track of how much each makespan differ from this average.

    Then, minimize the sum of these differences.

    I have setup a minimal worbook, next time please attach your own, not screenshots, when posting a question (see yellow banner at the top).

    HTH,

    Francesco
    Attached Files Attached Files
    Aim high or don't even try.
    ---------------------------------
    If your question has been answered, don't forget to mark the thread as SOLVED.
    If you find an answer helpful, click on the star icon at the bottom of the post.

  3. #3
    Forum Expert
    Join Date
    01-25-2011
    Location
    Belgium, Alveringem
    MS-Off Ver
    Excel 2003, 2007, 365
    Posts
    1,418

    Re: Unable to create linear function to use Simplex LP

    a little bit less complicated
    under each sumproduct you add a cell with the same value of the objective value
    Attached Files Attached Files
    Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

  4. #4
    Valued Forum Contributor Hydraulics's Avatar
    Join Date
    07-15-2018
    Location
    Udine - Italy
    MS-Off Ver
    Office 365
    Posts
    372

    Re: Unable to create linear function to use Simplex LP

    Quote Originally Posted by bsalv View Post
    a little bit less complicated
    You can trick Solver slipping a MAX function like that, but not OpenSolver, that will complain about non linearities.

    Add one single var, and minimize that one, subject to extra_var >= each sumproduct (which is the standard form of a minmax problem).

    HTH,

    Francesco
    Attached Files Attached Files
    Last edited by Hydraulics; 10-17-2021 at 05:25 AM.

  5. #5
    Forum Expert
    Join Date
    01-25-2011
    Location
    Belgium, Alveringem
    MS-Off Ver
    Excel 2003, 2007, 365
    Posts
    1,418

    Re: Unable to create linear function to use Simplex LP

    ok, the same idea, difference only in the details.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Solver or Formulas to create a linear cut optimization
    By rob_h in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-30-2021, 07:00 AM
  2. How to create non-linear forecast data
    By DavE8tor in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-28-2019, 01:58 PM
  3. Fill in blank cells with linear values with linear percentage increases
    By jstanley41 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-21-2018, 03:31 PM
  4. Simplex LP Solver Problem
    By eggspress_7 in forum Excel General
    Replies: 6
    Last Post: 10-05-2017, 04:04 AM
  5. Replies: 1
    Last Post: 10-10-2015, 04:45 AM
  6. Create a linear equation to fill in blank cells in a column
    By CEM in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 10-10-2013, 12:24 PM
  7. Replies: 0
    Last Post: 07-11-2012, 05:51 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1