+ Reply to Thread
Results 1 to 6 of 6

Solver Simplex LP. Negative Profit Tax Problem

  1. #1
    Registered User
    Join Date
    12-07-2023
    Location
    Portugal
    MS-Off Ver
    365
    Posts
    10

    Solver Simplex LP. Negative Profit Tax Problem

    Dear Community,

    I've already examined many topics on this forum and still unable to figure out a solution, although it is probably very simple.



    Brief intro
    There are several Locations: Location_1..Location_n.

    Each Location has a certain amount of Revenue. Also, each Location has its local Profit Tax Rate (given in percent). So, in Location_1 there is ProfitTax%_1...Location_n has ProfitTax%_n.

    Locations can trade each other, so that one Location is a seller and the other one is a buyer. There are many rules and constraints here, so I omit this part as is does not appear important.

    What we need is that after Locations distribute their revenues between each other, the remaining amount in each location will be called EarningsBeforeTax: EBT_1..EBT_n.

    Solver Goal
    My goal is to distribute revenues between locations is a way to maximize NetPnL=SUM(EBT_n - EBT_n*ProfitTax%_n).

    I use SimplexLP method to distribute revenues and get EBTs.

    I have built the Solver problem, and it works fine, except for one issue.

    Issue
    It can happen that EBT_n is negative. However, ProfitTax must be applied only to the positive part.
    So I need the objective to maximize NetPnL=SUM(EBT_n - MAX(0,EBT_n*ProfitTax%_n)).

    Obviously, this breaks linearity conditions.

    And I cannot figure out a solution to overcome this.

    To the best of my understanding, Binary variables are not applicable here, as Profit Tax is not something that Solver manages here, not a decision variable. I do not need to enforce positive EBT, I need to charge tax only from profits.

    Also I tried to set ProfitTax% to a very small percent in case when EBT<0, but this also breaks linearity conditions.

    I'm using Excel for Microsoft 365 with Solver Add-In.

    Sample file attached
    solver_profitTax_demo.xlsx
    Last edited by rpieuhtyelnekpmduz; 02-21-2024 at 01:10 PM.

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,947

    Re: Solver Simplex LP. Negative Profit Tax Problem

    Just as a logical statement, I think that "I do not need to enforce positive EBT" is incorrect. A location with negative EBT has excess 'tax avoidance capacity' for lack of a better term: transferring positive EBT to that location would reduce the tax load on another location without increasing the tax load at that location. So you should constrain your solutions to 0 or positive EBTs for all locations.

    Further, "There are many rules and constraints here, so I omit this part as is does not appear important." also seems incorrect. Mathematically, to maximize profits, only locations at the lowest rate should have ANY profit at all, and all locations not having the lowest rate should have exactly 0 profit. Apparently, you can't do that, so the rules would seem to impact the optimal solution.
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Registered User
    Join Date
    12-07-2023
    Location
    Portugal
    MS-Off Ver
    365
    Posts
    10

    Re: Solver Simplex LP. Negative Profit Tax Problem

    Thank you Bernie,
    You are probably right in terms of accounting world, but my problem is in linear optimization layer: how can I charge a percent from positive values only, and stay in linear form.

    I can't constrain EBT>0 because some locations have hard expenses but 0 incomes. During optimization I try to cover their negative PL however available resources from other locations are not always sufficient. So negative EBT is a valid case.

    Speaking about 'many rules to omit' I was just saying that locations have multiple constraints on where they can allocate their resources.
    As said above, non-negative EBT is not one of there constraints.

  4. #4
    Registered User
    Join Date
    12-07-2023
    Location
    Portugal
    MS-Off Ver
    365
    Posts
    10

    Re: Solver Simplex LP. Negative Profit Tax Problem

    Attaching an example: solver_profitTax_demo.xlsx
    The challenge is to take profit tax % only from positive EBTs.
    Last edited by rpieuhtyelnekpmduz; 02-21-2024 at 10:32 AM.

  5. #5
    Registered User
    Join Date
    12-07-2023
    Location
    Portugal
    MS-Off Ver
    365
    Posts
    10

    Re: Solver Simplex LP. Negative Profit Tax Problem

    I tried an indicator variable and big-M solution, but probably in an incorrect way as I still receive non-linearity.

  6. #6
    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: Solver Simplex LP. Negative Profit Tax Problem

    Admin note: Moved from Excel Programming / VBA / Macros
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

+ 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. Pivot table profit and loss by month - calculate gross profit and gross profit %
    By parkviewfinance in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 04-26-2020, 02:34 AM
  2. Replies: 7
    Last Post: 12-31-2016, 12:29 PM
  3. Profit maximation with Solver
    By maryJ in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-14-2015, 04:52 PM
  4. Interesting Solver problem (Solver encounters an error)
    By MrShorty in forum Excel General
    Replies: 3
    Last Post: 12-22-2005, 06:55 PM
  5. Profit Maximizing Using Solver
    By johnnie in forum Excel General
    Replies: 0
    Last Post: 10-17-2005, 11:05 PM
  6. solver- maximum profit
    By smallsun in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-25-2005, 12:06 PM

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