title: Excel solver in R
body: <p>I have been trying to find something similar to excel solver in <code>r</code>.</p>
  
  <p>For example I have the following program:</p>
  
  <pre><code>L=2.4
  UCL=L; LCL=-L
  ARL=1/(pnorm(LCL, mean = 0, sd = 1, lower.tail = TRUE)+pnorm(UCL, mean = 0, 
  sd = 1, lower.tail = FALSE))
  </code></pre>
  
  <p>I want <code>r</code> to search for a value of "L" such that my resultant "ARL" is close to e.g. 200. </p>
  
  <p>Is there a way to do so in r? </p>