tried numeric js, lp solver didn't work