Craftimizer icon indicating copy to clipboard operation
Craftimizer copied to clipboard

Unnecessary Meld

Open zocke1r opened this issue 2 years ago • 5 comments

I really enjoy using the solver but i noticed that it tends to recommend using a meld even though it could finish the craft with the remaining durability. As such i would appreciate if that minor flaw could be solved.

Version: v2.0.2.0

zocke1r avatar Dec 31 '23 15:12 zocke1r

I'm assuming you mean Master's Mend here? The reason why it recommends that action is because it scores simulations based on the weights you give it. The reason why it thought that's a better idea than to not do it is because the penalty of having a lower durability is worse than the % of your CP it uses and the extra action it needs to take for it. Remember that this isn't a magical all-knowing algorithm that knows exactly what you want. If you don't want to edit your macros after they're suggested, that's still partially on you. Feel free to mess around with the weights and settings until you get the results you want. image

WorkingRobot avatar Dec 31 '23 22:12 WorkingRobot

image I messed around with the weights a lot, pretty much tripling the weight of steps and halving that of durability. However, the synthesis helper still does this sometimes. I think an implementation for finishing the craft with the remaining durability when possible would optimize the plugin's efficiency a lot. Having it calculate durability costs of the remaining actions on every step, then checking that against the quality/progress could be a way to do this.

Mystic-W avatar Jan 17 '24 07:01 Mystic-W

Yeah i did something similar with my weights image and now the solver even suggests stuff like using Great Strides after already maxing the quality, just to dump CP. Is this an issue where the solver gets stuck in local maximum, due to cp being so worthless and doesn't find that removing this one step would increase the score? I think having a post solve action that removes all "unnecessary" steps, which dont change the craft outcome (success and quality), would solve the issue and improve the recommended solutions in general.

zocke1r avatar Jan 17 '24 09:01 zocke1r

That does seem like a good idea, but I think using a heuristic and comparing rlvl to clvl would be better. For example, if the difference is really huge, I can change the weights appropriately like that.

WorkingRobot avatar Feb 12 '24 08:02 WorkingRobot

I assume rlvl means recipe level and clvl crafter level. So you want to change the weights in case of an easy craft, so that the solver prefers the shorter solution? If yes, I don't know if that would help as i had the issue with unnecessary on non trivial crafts as well.

zocke1r avatar Feb 12 '24 16:02 zocke1r