search for: optimfxn

Displaying 2 results from an estimated 2 matches for "optimfxn".

Did you mean: optimfn
2010 Jun 02
0
DEOptim Parameters
I am trying to figure out how parameters are defined in a function that is used by DEOptim. That is, when I set upper and lower bounds for DEOptim how does it know which element of the function to apply those bounds to? For example, in DEOptim call below, when DEOptim goes into "optimfxn" how does it know what element of "optimfxn" to apply the upper and lower bounds to? optimization<-DEoptim( fn=optimfxn, lower=c(1.01000, 0.98000), upper=c(1.20000, 4.44000) optimfxn<- function (x) { ____________________________________________________________...
2010 Apr 25
1
Manipulating text files
...(b)find the lines in the input file to insert parameter values into(values used in DEOptim optimization between “lower” and “upper”), (c) insert those parameter values into the input file in the proper spot, and then run this altered input file(step 2). Is this the right way to start? #function optimfxn<- function (x) { #(1)(a) would I do something like this? txt<-readLines("inp_File.inp") #From here I need help finishing step 1. I have not worked much with text files in R. I have read a lot of help files but am not getting anywhere. #Do I have to use textConnection() to wr...