r how to minimize function how to maximize function minimize functions in r r how to maximize functions how to maximize a function in r how to maximize a function in R r optimisation functions r minimize function r maximize function r minimize custom function how to maximize custom function in r how to maximize in r how to minimize a function in r can i maximize or minimize a custom function? what does the r minimize custom function do how to minimize a custom ls function r functions minimize can i minimize r function how to maximize function r what is the function of minimizing in r