+ Reply to Thread
Results 1 to 3 of 3

The solver output gives negative values even after applying necessary constraints.

  1. #1
    Registered User
    Join Date
    10-26-2023
    Location
    India
    MS-Off Ver
    2013
    Posts
    4

    The solver output gives negative values even after applying necessary constraints.

    I've attached the problem in the file below. I need to optimize resource allocation across projects. I've decided to use binary variables to indicate whether a project is assigned to a particular resource or not. I've done the necessary formatting in data validation as well.

    However, instead of giving me binary values, the solver keeps giving me negative values as output.

    Objective as stated in earlier thread:

    I have ten projects to be completed. 5 of them are short term which take 6 months to complete and the other 5 are long term projects which take 12 months to complete. I have three resources available with me. One resource is enough to complete one project. However, one resource can only be engaged with one project at a time. As soon as a project is completed the resource can be engaged in the next project. Write a linear program in excel to optimize resource allocation and start stop times of the ten projects to ensure that all the ten projects get completed within the least amount of time.
    Attached Files Attached Files
    Last edited by 6StringJazzer; 11-01-2023 at 02:35 PM. Reason: Added objective from earlier thread

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: The solver output gives negative values even after applying necessary constraints.

    This is the same file you attached in your other thread. Does this thread supersede the first thread? I am inclined to close the other as a duplicate, as this one is more specific about your question.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

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

    Re: The solver output gives negative values even after applying necessary constraints.

    If you want to use binary variables, you must add a constraint in the range B4:K6, and choose "bin" as option.

    Moreover, you can simplify the constraint in row 8 selecting the range B8:K8 and setting it equal to 1.

    Finally, change the engine to Simplex LP.

    I doubt this approach will give you the minimum amount of time required to complete all the projects, though.

    HTH,

    Francesco
    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.

+ 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. [SOLVED] Help with Solver Constraints
    By white.james in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-27-2018, 01:56 PM
  2. [SOLVED] Excel Solver VBA - Solver Violating Constraints
    By lespaul00 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-19-2015, 04:00 PM
  3. solver (LP) constraints
    By tsatsos007 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-08-2014, 04:40 PM
  4. [SOLVED] Applying rules when calculations result in negative values
    By Walter12 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 11-01-2012, 05:19 PM
  5. Set Solver constraints to multiple data values
    By DutchDude in forum Excel General
    Replies: 3
    Last Post: 01-17-2012, 03:11 AM
  6. Replies: 4
    Last Post: 05-18-2011, 12:45 PM
  7. Solver constraints shall be OR // Solver target cell
    By Cunner in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-30-2009, 04:28 AM

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