Is Prolog a good tool for this kind of problem?

From: Neil (njensen_at_habaneros.com)
Date: 04/14/04

  • Next message: Nameless: "Generating crossword frameworks"
    Date: 13 Apr 2004 15:26:45 -0700
    
    

    We have an interesting potential project with a long-term client in
    the financial services industry. While I know that we can code this
    using a procedural approach, it tends to be pretty long and ugly.
    Based on skimming through some of the Prolog tutorials and docs, it
    appears as if Prolog might be a more efficient way to handle this type
    of problem.

    I'd appreciate any comments on this approach before we invest a lot of
    time into it. Thanks in advance.
     
     
    Scenario:
    Determine the transactions required to rebalance a portfolio of mutual
    funds so that the asset allocation matches a target allocation, while
    minimizing the overall tax burden triggered by the transactions.
     
    Details:
    A portfolios consist of one or more individuals who each own one or
    more accounts which each have one or more mutual funds.
     
    Individuals have different tax rates.
     
    Accounts may be of different types (e.g. taxable, non taxable). The
    different account types also have restrictions with respect to the
    amount of foreign content in the account. Buying and selling within a
    non-taxable account does not trigger capital gains, while taxable
    accounts are obviously subject to tax. If funds are sold at a loss
    less than 30 days after they are purchased, it is not possible to
    claim a loss on the sale. The gain (loss) on the sale of each mutual
    fund will depend on the current value and the adjusted cost base
    (similar to average cost of purchasing the funds).
     
    Each mutual funds belongs one or more asset class (e.g. equity,
    international equity, bonds, etc.). When more than one fund is in an
    asset class, a prioritized list is used to determine which funds are
    purchased to meet the target allocation.
     
    It is not required to meet the exact asset allocation target, instead,
    a target and a range is given (e.g. 20% +/- 3%).
     
    The goal is to generate a list of transactions within each account
    that will achieve the overall allocation while minimizing the overall
    tax bill.


  • Next message: Nameless: "Generating crossword frameworks"

    Relevant Pages

    • Re: Should an LLC file its own return?
      ... It doesn't matter if the funds are still sitting in the ... check in my personal account. ... Tax, Federal, and CA state Tax (which comes to just about 50% when all the ... tax savings if you do, but there is a cost to do so, and you have to ...
      (misc.taxes)
    • Re: Savings account for non-resident
      ... I don't need instant access to the funds - 90 days ... What would be a good account to go for? ... Be aware that if the OP is resident in another EU country then they will either deduct tax at 15% or tell his own country's equivalent of HMR&C and he could have more tax to pay there. ...
      (uk.finance)
    • Re: Wow, do we need a tax accountant...
      ... I'm looking to set all of this aside for Connor for when he's 18 (or ... I've been talking to friends about tax attorneys, estate planners, etc. ... funds into a Connor account. ...
      (rec.music.gdead)
    • Re: Tax or Borrow?
      ... cutting the size of government by 70% or more would however. ... > borrowed the funds directly from the Fed, ... > tax bill. ... > The borrowing option would involve the sale of $100 billion ...
      (sci.econ)
    • Re: UHMW, Delrin, Teflon, Nylon offcuts on sale
      ... I don't think that PayPal would be authorized to withdraw funds from a person's checking acount without the person's authorization, if the person isn't registered with a P-P as a business account.. ... I assume a credit card problem involving fraud could be resolved without the CC company or a bank freezing a person's account funds. ...
      (rec.crafts.metalworking)