Page 1 of 3 123 LastLast
Results 1 to 15 of 37

Thread: Suggestions as to good tg/fort/stable optimization algorithm

  1. #1
    Post Demon
    Join Date
    Sep 2008
    Posts
    1,524

    Suggestions as to good tg/fort/stable optimization algorithm

    Firstly, please don't tell me about how "useless" static analysis and optimization is. I know it has limits, but I believe I am a stronger player because of it, therefore I will use it.

    Secondly, please don't tell me "no forts". I am optimizing MPNW (DPNW + OPNW at a fixed off/def ratio). I may choose to run fewer forts due to "intangible" considerations, but I want to know the "optimal" number of each.


    So the goal: find a way to take X% land at B% BE with M military units per acre (of strength O and D for off and def respectively) with a finial off/def ratio of R (aka, 3:2 or 2:1) and a fixed NWPA (before stables), and divide X up into TG, Fort, and Stables such that MPNW is maximized.

    The question - how? I tried one approach in my simulation spreadsheet, but upon reexamining it, it stinks. It does better than splitting in 3rds, but it is clearly not optimal. No matter how high BE goes, it still has at least .1% stables. It was based on the idea of starting at the "corners" and moving towards the center, with the movement based on how much it "helped". It doesn't deal with discontinuities, and it doesn't deal with cases where optimal of a building is 0.

    I also know I *could* write a "grid" approximation and refinement algorithm. Break the area up into 100 cubes, calc at each point, find the best 1, and do the same in a smaller grid around that point. This is NOT an algorithm that can be done effectively in a spreadsheet however, and it therefore requires rewriting the whole sim in C. (And worsening the user interface... cause I'm not writing a nice slick one in C just for this.)

    So what else is available? Are there any good approximations that a spreadsheet can do? Are there any simplifications to the systems of equations we can make? Or is it just too hard?
    it's vs. its is ambiguous - from now on I'm attempting to use the proper possessive it's, and the contraction 'tis. (Its will just be the plural.)

    Think Different

  2. #2
    Postaholic
    Join Date
    Sep 2008
    Posts
    934
    lol

    its very simple. to maximize "opnw" and "dpnw", just get 30% forts and 30% TG and draft 90%

    ppl needs to step away from numbers. u need to optimize ur prov's PERFORMANCE, not numbers. that includes MANY things such as tactical advantages of having high offense, or flexibility. those kind of stuff cannot be put into simple numbers. different kingdoms or even different provs within the same kd will have VERY different requirements for fort/TG ratio. for example small suiciders do not need forts, while big provs or t/m might need a lot of forts. those kind of stuff are purely situational

  3. #3
    Needs to get out more VT2's Avatar
    Join Date
    Jul 2008
    Location
    Sweden
    Posts
    10,880
    If you weren't so busy thinking differently, chances are you'd have realized that by now.
    Catwalk's crusade for legalized cheating was a stunning success, with ghettos and low-tiered teams everywhere losing their wells of knowledge to better kingdoms in the process.

    Step one: replace everything that works.
    Step two: blame the predictable epic fail on outside forces.
    Step three: keep the community informed that no progress has been made since the last update.
    Step four: thank you for your patience.

  4. #4
    Enthusiast
    Join Date
    Aug 2008
    Posts
    476
    Problem #1: You are using a fixed offense/defense ratio. The point of optimizing TGs/Forts is that the O/D ratio will change to optimize your bonuses. A better way of looking at it is to calculate on a per acre basis using your minimum standing DPA. Optimization is achieved for TGs/Forts when you reach 50% land dedicated to each. Note: this is the ratio of the bonuses provided by both buildings. Also note that the most you can increase your OPA is by the percentage lost due to DBE. So the more land dedicated to both buildings, the larger the difference for optimizing your buildings.

    I haven't tried to include stables into the equation because there are too many variable factors, making the equation extremely complex. Factors like the maximum number of effective war horses per attack.

  5. #5
    I like to post Realest's Avatar
    Join Date
    Sep 2008
    Posts
    4,368
    if you truly wanna optimize, you go a 1:1 split as that will give you the best bang for the buck due to DBE.
    The End of an Era

  6. #6
    Sir Postalot
    Join Date
    Aug 2008
    Location
    Australia
    Posts
    3,036
    Quote Originally Posted by Realest View Post
    if you truly wanna optimize, you go a 1:1 split as that will give you the best bang for the buck due to DBE.
    not quite...
    that assumes the prov has 1:1 raw offense, as well as no stables...
    even then... generals bugger up the calculation a bit (unless you only send 1 gen, but sending 4 means TG's are actually more efficient than forts at increasing "optimization")

    you can probably (and i am going to hate myself for this)
    optimizing MPNW
    *shudders* by doing it without stables and a 1:1 ratio of raw offense to defense, but including stables and weird ratio's you are likely going to need matlab or some other maths program to analyst different ratio's and work out from there how to do it

    on a slightly related note... WHY??!?!?!?!?!?!
    Deliverance -> secrets -> anzac -> mercy -> rage -> "ghetto"

  7. #7
    Needs to get out more DHaran's Avatar
    Join Date
    Aug 2008
    Location
    Maryland, USA
    Posts
    8,404
    It's useless, and you are wasting your time.
    S E C R E T S

  8. #8
    I like to post Realest's Avatar
    Join Date
    Sep 2008
    Posts
    4,368
    it doesnt matter greenie. at 50/50% split, the mods are at it's highest so w/e number you are multiplying at, it doesnt matter - you are still getting the highest possible defensive and offensive mod.

    Think about that for a sec.
    The End of an Era

  9. #9
    Post Fiend Bano's Avatar
    Join Date
    Mar 2009
    Posts
    138
    im glad im pass this problem now.

  10. #10
    Sir Postalot
    Join Date
    Aug 2008
    Location
    Australia
    Posts
    3,036
    Quote Originally Posted by Realest View Post
    it doesnt matter greenie. at 50/50% split, the mods are at it's highest so w/e number you are multiplying at, it doesnt matter - you are still getting the highest possible defensive and offensive mod.

    Think about that for a sec.
    not quite...
    because gens give +9% OME, your TG's are in affect 9% more effective (same goes for forts and MP/GP)

    so, at 10% of each @ 100% BE, you get +13.5% OME/DME
    but, because of gens/MP you actually have +14.71% OME and 14.175% DME and the next 1% of both, TG's will give you more of an increase than forts will

    i mean, if you were really keen, and had NOTHING better to do in your life, sure, write a little program that will check whether the next 1% of forts/TG's will give you better #'s depending on raw OPA/DPA, and you can then make it recursive up to a certain % (i dont even want to consider stables in there)
    but, honestly, 90% of the time, TG's > Forts, unless you are looking at over 20% of your land dedicated to it
    Deliverance -> secrets -> anzac -> mercy -> rage -> "ghetto"

  11. #11
    I like to post Realest's Avatar
    Join Date
    Sep 2008
    Posts
    4,368
    i dont think you get it, optimization of TG and Forts means you use the combo that will give you the highest mod.

    a 50/50 split gives you the highest modifier... this isnt really debatable...
    The End of an Era

  12. #12
    Sir Postalot
    Join Date
    Aug 2008
    Location
    Australia
    Posts
    3,036
    edit, nvm
    Deliverance -> secrets -> anzac -> mercy -> rage -> "ghetto"

  13. #13
    Forum Addict Toadi's Avatar
    Join Date
    Jul 2008
    Location
    Paris, France
    Posts
    876
    Think differently greenie, think differently.

  14. #14
    Post Fiend
    Join Date
    Jun 2009
    Posts
    116
    Quote Originally Posted by DHaran View Post
    It's useless, and you are wasting your time.

    I love how someone is actually trying to contribute to this game and all you can say is "You're wasting your time."

    You're a real champ.
    Last edited by Bishop; 18-06-2009 at 11:56. Reason: personal attacks

  15. #15
    I like to post Realest's Avatar
    Join Date
    Sep 2008
    Posts
    4,368
    Quote Originally Posted by Tuskony View Post
    Your mom wasted her time. She should of done the smart thing and flushed you down the toilet.

    I love how someone is actually trying to contribute to this game and all you can say is "You're wasting your time."

    You're a real champ.
    if you're gonna call someone out, try not to look stupid yourself.
    The End of an Era

Thread Information

Users Browsing this Thread

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

Posting Permissions

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