I am working on nonlinear curve fitting in R and I cannot figure out how to constrain the data using the variables... Here is an example:
dat<-read.table(text=