EatDrink.ash: Optimize your daily diet (and see how your old diet stacks up).

Because if it wasn't guaranteed to give strictly suboptimal results for *some* inputs, it would either solve NP-hard problem in polynomial time, or take *really* long time to run.

It's not a NP-hard problem when you restrict the size of the input problem, and so a pseudopolynomial solution works just fine.

Spectral pickle is just too good with your current VoA. Since you have the same VoA as I did, 1250, your single-lasagna value is not worth using the potion. Once you have it choose multiple lasagna, we'll see...

You're not answering why it claims the single lasagna adventure yield is 19 on non-Mondays, though.
 
The most likely thing is that in one of the 5 simulated attempts at varying VoA levels, it chose to use lasagna. At that point, it decided that lasagna would be good for future fake-consumption and gave you (and me) the bad info. I can try to strip that part out, at least... it only affects simulated consumption, though. Unrelated to actual use or non-use of the helper.
 
This morning my simulation run matched the actual but I had to bump VOA to 1700 before EatDrink would consider eating even a single lasagna. At 1650 VOA no lasagnas were considered but at 1700 three were queued.
 
Last edited:
Did you end up with potions, or without? If so, then all is as it should be now. I threw in something yesterday to make it reset the lasagna level of simulations between tests. Real executions already decided individually on each run, so they didn't have that problem.
 
Nifty. Hopefully lasagna prices will drop again eventually to when my usual 1250 VoA will start using them again, but it's good to know that things are functioning properly again. :)
 
You say that as if I was wrong.

In this case, the problem size *is* very much restricted. Difficulty of the knapsack problem scales linearly with size of knapsack and with number of items. Crude upper bound is on the order of a hundred thousand float comparisons, which is next to nothing in practice.

If anything, any slowdowns in solutions I've seen have been a result of insisting on updating all the mall prices.
 
Anyways, we've fixed the potential suboptimal suggestion on simulation. There never was a suboptimal selection on actual execution.

Since the lasagna simulation bug is now fixed, if you have a specific new bug that's still occurring, please let us know. If you want to continue discussing knapsack problem solving and its relative merits, please move that outside this thread to the scripting discussion board. Thanks.
 
I could have sworn there was a setting somewhere I could check to avoid pasta while I was building up carboloading. I can't seem to find it, though. If there is not one, may I request one?
 
zlib eatdrink_noNoodles = true

I found it by searching for the word "carboLoading" which is a KoLmafia preference I was surprised to discover is actually ignored by EatDrink.
 
The lasagna simulate bug doesn't seem to be fixed:
******************************************
Now, to recap...
******************************************
Starting EatDrink.ash (version 3.2).
Consuming up to 15 food, 0 booze, and 0 spleen
Considering food from inventory closet Hagnk's Coinmasters NPCs the mall. Per-item budget cap is 25000.0.
Retrieval cap is 20000. Price will be a factor if you own it already.
An adventure has the value of 1250 meat. Muscle subpoint is 0.0. Nonprime stat subpoint is 0.0.
Simulating only; no purchases or food/drink/spleen consumption.
food: At 0, consuming to 15 with 252295 meat.
0: milk of magnesium price: 833 value: 17917
1: spectral pickle lev:8 gain:4.0 adv:23.0 musc:29.5 myst:29.5 mox:29.5 meat:4500 own:0 value:6062
2: spectral pickle lev:8 gain:4.0 adv:23.0 musc:29.5 myst:29.5 mox:29.5 meat:4500 own:0 value:6062
3: spectral pickle lev:8 gain:4.0 adv:23.0 musc:29.5 myst:29.5 mox:29.5 meat:4500 own:0 value:6062
4: fishy fish lasagna lev:10 gain:3.0 adv:19.0 musc:0.0 myst:0.0 mox:50.5 meat:5599 own:0 value:6050
choc: Checking non-filling crimbo chocolates - all 3 kinds
1: chocolate seal-clubbing club lev:0 gain:1.0 adv:3.0 musc:0.0 myst:0.0 mox:0.0 meat:3250 own:93 value:500
Best find was chocolate seal-clubbing club with a value of -750. That's no good, so not consuming and moving on.
Finished.
Spent 19099 meat with additional expenditures of 833 meat. Gained Fullness: 15. Inebriety: 0. Spleen: 0.
Adventures: 106. Muscle: 87. Moxie: 137. Mysticality: 87.
Eating, drinking, and spleening complete. Commence merrymaking (at your own discretion).

Further, it's not just a "simulated consumption" bug (as a number of other users reported).
******************************************
Now, to recap...
******************************************
Starting EatDrink.ash (version 3.2).
Consuming up to 15 food, 0 booze, and 0 spleen
Considering food from inventory closet Hagnk's Coinmasters NPCs the mall. Per-item budget cap is 25000.0.
Retrieval cap is 20000. Price will be a factor if you own it already.
An adventure has the value of 1250 meat. Muscle subpoint is 0.0. Nonprime stat subpoint is 0.0.
food: At 0, consuming to 15 with 252295 meat.
0: milk of magnesium price: 833 value: 11667.0
0: milk of magnesium price: 833 value: 5417.0
1: spectral pickle lev:8 gain:4.0 adv:23.0 musc:29.5 myst:29.5 mox:29.5 meat:4500 own:0 value:6062
2: spectral pickle lev:8 gain:4.0 adv:23.0 musc:29.5 myst:29.5 mox:29.5 meat:4500 own:0 value:6062
3: spectral pickle lev:8 gain:4.0 adv:23.0 musc:29.5 myst:29.5 mox:29.5 meat:4500 own:0 value:6062
4: fishy fish lasagna lev:10 gain:3.0 adv:19.0 musc:0.0 myst:0.0 mox:50.5 meat:5599 own:0 value:6050
choc: Checking non-filling crimbo chocolates - all 3 kinds
1: chocolate seal-clubbing club lev:0 gain:1.0 adv:3.0 musc:0.0 myst:0.0 mox:0.0 meat:3250 own:93 value:500
Best find was chocolate seal-clubbing club with a value of -750. That's no good, so not consuming and moving on.
Finished. You had Milk of Magnesium in effect. Adventures listed above does not reflect that, but this does:
Spent 22272 meat. Gained Fullness: 15. Inebriety: 0. Spleen: 0.
Adventures: 98. Muscle: 195. Moxie: 245. Mysticality: 159.
Eating, drinking, and spleening complete. Commence merrymaking (at your own discretion).

Perhaps it no longer manifested for Magus_Prime because his valueOfAdventure was high enough that lasagna was a reasonable dietary choice in the first place.
 
Well, since all of my characters ascended today after Magus reported it was fixed, it'll be a few days before I can look at it again. But I'll try to get the single non-FG lasagna and try to fix the display.
 
When I ran EatDrink today, I got these error messages:
You need 7 more Bee's Knees to continue.
You need 7 more Sockdollager to continue.
You need 7 more Ish Kabibble to continue.

So it thinks these are good drinks to consume, but it apparently doesn't account for the daily limit of 3 such drinks and then gives up on them entirely.
 
Okay... I've tried to mangle something together to avoid drinking more than 3 SE drinks in a day. Let me know if it works...
 
You need to delete the line about Pr0n Chow Mein in the script as that causes problems now that it doesn't exist anymore.
 
You mean like I did in r39 26.5 hours before your post? Someone needs to update their svn copy before they post bug reports... ;)
 
Hmm, not sure why your client apparently got bad info. It's something that just happens with mafia SVN, though not usually on SF. Deleting and re-installing the script should get it back to the latest version and have it keep updating for a while.
 
You mean like I did in r39 26.5 hours before your post? Someone needs to update their svn copy before they post bug reports... ;)
That was kinda awesome. I woke up, ran my script and $item[Pr0n Chow Mein] caused it to bomb. So I ran svn update and everything was good again. Thanks!
 
Back
Top