Originally Posted by
nipil
You totally got me 15 years back in time, looking at a white sheet of paper during some math exam :-)
Man, I can't get to write it down in proper english (i'm french), but the way i feel it is that once you know which target value/prio to aim for (aka the mathematical problem input) an optimal weighted algorithm will provide the best mathematical answer to these particular constraints, even if the results doesn't felle like it's sane.
Blattantly stupid mathematical example : let's you're 22 hit under the hitcap, and you have a piece that has 345 hit you can reforge out of, and a red slot somewhere. Put a red +160 exp gem, reforge out of hit to any other stat, will remove 345 * 0.4 = 138 hit from the slot, but combined with the gem you now have a total of +160-138=22, thus exaclty reaching the cap.
PS: please don't tell me that red should be int, and that int > hit i know it, as stated, it's just an example to show that reforging out of a stat somewhere and into that same stat somewhere else is often a valid mathematical solution to the given problem