Displaying 20 results from an estimated 55 matches for "opt1".
Did you mean:
opt
2006 Jan 13
1
apply
...95295.51 39348.195
8 93737.35 34343.489
9 89375.05 28750.743
10 95312.65 30755.064
11 100888.17 55404.370
12 84790.23 37751.074
13 81129.82 29277.443
14 69797.09 21500.398
15 61690.34 18199.664
16 60671.08 19349.051
17 62852.57 16300.982
18 90646.32 34793.148
And a function opt1:
opt1 <- function (x) {
Z <- x + M
c.hat <- (x/Z)*pop*(1-exp(-Z))
y <- (catch - c.hat)^2
return(y)
}
And define M = 0.25
For each row I want to return a value F that is a minimization of the
opt1 function
I have tried many variations of:
d$F<-apply(d,2,optim(0.3,opt1,me...
2011 Mar 30
3
optim and optimize are not finding the right parameter
...t;-c(0,3000000,7800000,15600000,23400000,131200000)
DV<-c(0,500,1000,1400,1700,1900)
test<-my.function(0.0000001)
(test) # I get 11,336.81
However, when I try to optimize my.function with optim - trying to
find the value of b that minimizes the output of my.function - I get a
wrong solution:
opt1 <- optim(fn=my.function,par=c(b=0.00000001),
method="L-BFGS-B", lower=0,upper=1)
(opt1)
test2<-my.function(opt1$par) # is much larger than the value of "test" above.
# And getting the same - wrong - result with optimize:
opt2 <- optimize(f=my.function,interval=c(0...
2008 May 30
3
v1.1.rc6 released won't compile
I got a compile error with rc6, rc5 works fine.
amd64:dovecot-1.1.rc6# uname -a
FreeBSD amd64.objtech.com 7.0-RELEASE-p1 FreeBSD 7.0-RELEASE-p1 #3: Fri
Apr 18 02:18:13 EDT 2008
./configure \
--prefix=/opt1/dovecot \
--localstatedir=/var \
--without-shadow \
--without-cyrus-sasl2 \
--without-pop3d \
--without-gssapi \
--disable-ipv6 \
--disable-debug \
--with-ioloop=kqueue \
--with-ssl=openssl
make
[trimmed]
gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/lib -I../../src/lib-mail
-std=gnu99 -g -O...
2006 Jun 17
1
1.0 beta 9 problems
Two problems with this new beta not found in beta 8.
1. mbox_from_create error
This is the configure string I use, and I paste the make error message
below. I have to use "--with-storages=maildir,mbox" to get around the error.
./configure \
--prefix=/opt1/dovecot \
--localstatedir=/var \
--without-shadow \
--without-cyrus-sasl2 \
--without-pop3d \
--without-gssapi \
--disable-ipv6 \
--disable-debug \
--with-storages=maildir \
--with-ssl=openssl
mkdir .libs
gcc -std=gnu99 -g -O2 -Wall -W -Wmissing-prototypes
-Wmissing-declarations -Wpointer-arith -...
2009 Jun 04
0
[LLVMdev] llvmc for PIC16
Hi Sanjiv,
Sanjiv Gupta <sanjiv.gupta <at> microchip.com> writes:
>
> PIC16 now has clang and llc based system to generate native assembly. We
> then use our native assembler (gpasm) and the native linker (mplink) to
> generate the final executable. How can I integrate these things with
> the driver llvmc to have gcc like user experience? Note that we also
>
2009 Jun 03
2
[LLVMdev] llvmc for PIC16
PIC16 now has clang and llc based system to generate native assembly. We
then use our native assembler (gpasm) and the native linker (mplink) to
generate the final executable. How can I integrate these things with
the driver llvmc to have gcc like user experience? Note that we also
want to run llvm-ld in order to perform the LTOs in case of multiple files.
- Sanjiv
2009 Jun 05
4
[LLVMdev] llvmc for PIC16
...clang-cc, -pre-RA-sched=list-burr to llc.
$ mcc16 -S -g -I ../include -pre-RA-sched=list-burr foo.c
// [clang-cc -I ../include foo.c] -> foo.bc
// [llvm-ld -disable-opt foo.bc] -> foo.opt.bc
// [llc -pre-RA-sched=list-burr foo.opt.bc] -> foo.s
** -Wo passes options to llvm-ld
$ mcc16 -Wo=opt1,opt2 -S -I ../include -pre-RA-sched=list-burr foo.c
// [clang-cc -I ../include foo.c] -> foo.bc
// [llvm-ld -opt1 -opt2 foo.bc] -> foo.opt.bc
// [llc -pre-RA-sched=list-burr foo.opt.bc] -> foo.s
** -Wa passes options to native as.
$ mcc16 -c foo.c -Wa=opt1
// [clang-cc foo.c] -> foo.bc...
2008 Jul 21
6
form_for and select ( => f.select)
Hi All
I''m trying to combine the from_for and select helpers
Right now I have
form_for :service, :url => ...... do |f|
select("abc", "xyz_id", @my_arr.collect {|item| [ item, "bla" ] },
{:prompt => "opt1"} )
....
end
What I want to do is something like
....
f.select("abc", "xyz_id", @my_arr.collect {|item| [ item, "bla" ] },
{:prompt => "opt1"} )
....
(this doesn''t work)
I''ve tried many things but I cannot get this to w...
2019 Apr 22
1
Bug/limitation: allowoptions (for label), implicit (for automated)
...se to be blocked by IMPLICIT 0.
*Example (default) current*
default kernelX OPT
# OPT not passed with allowoptions 0 (fully blocked with IMPLICIT 0)
default labelX OPT
# OPT currently passed regardless of allowoptions
*Example (ifcpu) current*
label conditionK
com32 ifcpu.c32
append 64 -- kernelX OPT1 -- kernelX OPT2
# same as above: OPT not passed with allowoptions 0 (fully blocked with IMPLICIT 0)
label conditionL
com32 ifcpu.c32
append 64 -- labelX OPT1 -- labelX OPT2
# same as above: OPT currently passed regardless of allowoptions
*Example (prompt) current*
kernelX OPT
# OPT not passed with...
2007 Jan 04
1
problem with function 'optimise' (PR#9438)
...wo local maxima
located at the margins of the interval [0,0.5]. Please try the following code
which performs this optimisation, produces a plot of the function within the
given interval and adds the computed maximum returned by 'optimise()'
ex1 <- function(x) log(4 * x^2 - 2 * x + 0.5)
opt1 <- optimise(ex1, lower=0, upper=0.5, maximum=T)
x <- seq(0,0.5,0.001)
plot(x, ex1(x), type="l")
abline(v=opt1$maximum, col="red")
The returned value of the maximum is 0.309017 which is definitely wrong.
Example 2:
The next function has also two equivalent maxima this ti...
2018 Aug 17
2
Replication -O3 optimizations manually
Hi Zide,
I think I found the right way to reach my goal.
I used the following command:
clang -O3 -Xclang -disable-llvm-optzns main.c -S -emit-llvm -o main.ll
to generate an IR file enriched by all the metadata that otherwise wouldn't be generated with -O0. Moreover, -disable-llvm-optzns flag ensures that none of the optimization passes has been applied yet to the IR.
In this way, I can
2011 Jun 19
2
[LLVMdev] Phase Interactions
...a) Compiled the program using 'clang -c O0 -flto program.c'
b) opt -optimization program.o -o optprogram.o
c) llc optprogram.o
d) gcc optprogram.o.s
e) Measure the performance of the generated executable.
3. for each optimization pair [opt1, opt2] from the optimization list
a) Compiled the program using 'clang -c O0 -flto program.c'
b) opt -opt1 -opt2 program.o -o optprogram.o
c) llc optprogram.o
d) gcc optprogram.o.s
e) Measure the performance of the generated e...
2011 Mar 07
1
More appropriate optimization routine?
Hello!
I have 2 variables - predictor "pred" and response variable "DV":
pred<-c(439635.053, 222925.718, 668434.755, 194242.330, 5786.321, 115537.344,
100835.368, 7133.206, 159058.286, 4079991.629, 3380078.060, 2661279.136,
2698324.478, 1245213.965, 1901815.503, 1517019.451, 1396857.736, 1034030.988,
432249.574, 342329.325, 1831335.792, 2209578.859, 1641709.754,
2006 Aug 16
2
[LLVMdev] Weird behavior of llvm-ld
Hi,
I'm using LLVM 1.8 with the GCC4-frontend on a Slackware 10.2 box (GCC
3.3.6). When issuing the following command (line 14 in a script called
manual.sh):
llvm-ld -O1 *.trans -L${SOME_LIB_DIR} -L${SOME_OTHER_LIB_DIR}
-L${LLVM_FRONT}/lib -lSOME_LIB -lSOME_OTHER_LIB
-load=${MY_LIB_DIR}/opt1.so -load=${MY_LIB_DIR}/opt2.so
-debug-pass=Details -debug -o test
... I get the following messages:
llvm-ld: warning: Supposed library 'SOME_OTHER_LIB' isn't a library.
./manual.sh: line 14: 25492 Segmentation fault
When I invoke the same from within gdb, I get:
[Thread debugging u...
2009 Mar 03
1
R 2.9.0 devel: package installation with configure-args option
Hi,
trying
to install a package containing C code and requiring non-default configure argument
settings the incantation (this has worked for R <= 2.8.1 on the same architectures)
R CMD INSTALL --configure-args="--with-opt1 --with-opt2" packname
does always result in a warning
Warning: unknown option '--with-opt2'
and consequently the option is ignored. Reverting the order of options results in the now
last option to be ignored. Alternative quoting has not provided a solution.
Using
R CMD INSTALL --co...
2011 Jun 19
0
[LLVMdev] Phase Interactions
...rogram using 'clang -c O0 -flto program.c'
> b) opt -optimization program.o -o optprogram.o
> c) llc optprogram.o
> d) gcc optprogram.o.s
> e) Measure the performance of the generated executable.
> 3. for each optimization pair [opt1, opt2] from the optimization list
> a) Compiled the program using 'clang -c O0 -flto program.c'
> b) opt -opt1 -opt2 program.o -o optprogram.o
> c) llc optprogram.o
> d) gcc optprogram.o.s
> e) Measure the performanc...
2009 Jun 07
0
[LLVMdev] llvmc for PIC16
...mp.s -o /tmp/llvm_6ibgr9/tmp.o
native-ld /tmp/llvm_6ibgr9/tmp.o -o a.out
> 3. -Wo <options> - pass optimizations to the llvm-ld
> 4. mcc16 -Wl <options> - pass options to native linker.
> 5. mcc16 -Wa <options> - pass options to native assembler.
$ mcc16 -dry-run -Wo,-opt1 -Wllc,-opt2 -Wa,-opt3 -Wl,-opt4 foo.c
clang-cc foo.c -o /tmp/llvm_92HLCj/foo.bc
llvm-ld -opt1 /tmp/llvm_92HLCj/foo.bc -o /tmp/llvm_92HLCj/tmp.bc
llc -opt2 -f /tmp/llvm_92HLCj/tmp.bc -o /tmp/llvm_92HLCj/tmp.s
native-as -opt3 /tmp/llvm_92HLCj/tmp.s -o /tmp/llvm_92HLCj/tmp.o
native-ld -opt4 /tmp/l...
2011 Apr 12
1
2-parameter MLE problems
...9
3 3 139 11 128
4 4 178 22 156
5 5 203 18 185
6 6 244 37 207
attach(summary)
poisNLL=function(P){
lambda=P[1]*SeroNeg*0.001*SeroPos-0.35*0.999*SeroPos-P[2]*SeroPos
v=-sum(dpois(SeroNeg,lambda=lambda,log=TRUE))
if (!is.finite(v)) v<- -2000000
v
}
opt1=optim(poisNLL,start=c(10,.1),method='BFGS')
I receive the following error from this code: "Error in optim(poisNLL, start
= c(10, 0.1), method = "BFGS") :
cannot coerce type 'closure' to vector of type 'double'"
Any assistance provided would be greatly...
2006 Aug 16
0
[LLVMdev] Weird behavior of llvm-ld
...8 with the GCC4-frontend on a Slackware 10.2 box (GCC
> 3.3.6). When issuing the following command (line 14 in a script called
> manual.sh):
>
> llvm-ld -O1 *.trans -L${SOME_LIB_DIR} -L${SOME_OTHER_LIB_DIR} -L
> ${LLVM_FRONT}/lib -lSOME_LIB -lSOME_OTHER_LIB -load=
> ${MY_LIB_DIR}/opt1.so -load=${MY_LIB_DIR}/opt2.so -debug-pass=Details
> -debug -o test
>
> ... I get the following messages:
>
> llvm-ld: warning: Supposed library 'SOME_OTHER_LIB' isn't a library.
The -l option is used to link libraries into the resulting executable.
I'm hoping &quo...
2004 Aug 16
1
[LLVMdev] Optimization Levels - Need The Details
...1. Allow the configuration file to specify a series of items that define
which passes to run for a given level of optimization. This will
support FE languages that don't have a compiler that does its own
optimization and depends on "opt" to do it. So, for example,
lang.opt1=-simplifycfg -instcombine -mem2reg
could be specified as well as lang.opt2, lang.opt3 ...
2. Allow the configuration file to specify that a given tool understands
the *intent* of the -On options and simply provide -On to that tool
as a command line option, rather than attempt to list t...