Displaying 8 results from an estimated 8 matches for "startingvalue".
2025 Mar 28
1
Problem with minimization that I failed to understand
...don't know if this is relevant a package GA - genetic algorithms -
gets solutions above the starting value.
Fn <- function(Wts) return(
-Kendall::Kendall(
1:Nobs,
rank(-as.vector(as.matrix(MyDat) %*% matrix(Wts, nc = 1)[, 1, drop
= T]))
)$tau[1]
)
Nobs <- nrow(MyDat)
StartingValue <- c(0.12, 0.04, 0.07, 0.03, 0.06, 0.07, 0.07,
0.04, 0.09, 0.08, 0.02, 0.02, 0.03, 0.06,
0.02, 0, 0.07, 0.05, 0.02, 0.02, 0.02)
library(GA)
#> Loading required package: foreach
#> Loading required package: iterators
#> Package 'GA' versio...
2011 Jun 27
0
OpenBUGS and glmmBUGS package
...MR')
library(spdep)
popDataAdjMat = poly2nb(ontario, ontario[["CSDUID"]])
library(glmmBUGS)
forBugs = glmmBUGS(formula=observed + logExpected ~ 1,
effects="CSDUID", family="poisson", spatial=popDataAdjMat,
data=ontario at data, modelFile="model.txt")
startingValues = forBugs$startingValues
source("getInits.R")
library(R2OpenBUGS)
ontarioResult = bugs(forBugs$ragged, getInits, parameters.to.save =
names(getInits()), model.file="model.txt", n.chain=3, n.iter=100,
n.burnin=10, n.thin=2)
-------------------------------------------
I got e...
2025 Mar 27
1
Problem with minimization that I failed to understand
?s 19:36 de 27/03/2025, Daniel Lobo escreveu:
> My code is to minimize the objective function
>
> therefore, shouldnt I expect that
>
> StartingValue = c(0.12, 0.04, 0.07, 0.03, 0.06, 0.07, 0.07, 0.04, 0.09,
> 0.08, 0.02, 0.02, 0.03, 0.06, 0.02, 0, 0.07, 0.05, 0.02, 0.02, 0.02)
> Fn(q1$par) < Fn(StartingValue)
> ## FALSE
>
> Below is the corrected code that can be reproduced:
>
> MyDat = structure(list(c(50L, 0L, 0L, 50...
2025 Mar 27
1
Problem with minimization that I failed to understand
My code is to minimize the objective function
therefore, shouldnt I expect that
StartingValue = c(0.12, 0.04, 0.07, 0.03, 0.06, 0.07, 0.07, 0.04, 0.09,
0.08, 0.02, 0.02, 0.03, 0.06, 0.02, 0, 0.07, 0.05, 0.02, 0.02, 0.02)
Fn(q1$par) < Fn(StartingValue)
## FALSE
Below is the corrected code that can be reproduced:
MyDat = structure(list(c(50L, 0L, 0L, 50L, 75L, 100L, 50L, 0L, 50L, 0L,
25L...
2000 Jul 01
0
convergence value in optim
Dear all,
I have a problem with the value of the function optim
optim(startingvalues,fct,NULL,method="BFGS",
control=list(maxit=300,trace=TRUE,REPORT=1))
In the helpfile for it is said that
$convergence
is an integer code and
0 indicates successful convergence
1 indicates that the iteration limit maxit had been reached
So while using it, I played with different va...
2013 Feb 17
0
What value to put in range when I make kriging interpolation?
Hi, I am trying to make an automatic kriging interpolation algorithm.When I use the fit.variogram function what would it be a good startingvalue for the range?
ThanksDimitris
[[alternative HTML version deleted]]
2025 Mar 28
3
Problem with minimization that I failed to understand
Hi Duncan,
Thanks for your comment, I agree with that.
But, how it can be justified that an Optimizer gives a result which is
inferior to the starting value? At most, resulting value can remain at the
same level, isnt it?
On Fri, 28 Mar 2025 at 14:34, Duncan Murdoch <murdoch.duncan at gmail.com>
wrote:
> I haven't run your code, but since Kendall correlation is based on
>
2025 Mar 27
1
Problem with minimization that I failed to understand
?s 18:35 de 27/03/2025, Daniel Lobo escreveu:
> Hi,
>
> I have below minimization problem
>
>
> MyDat = structure(list(c(50L, 0L, 0L, 50L, 75L, 100L, 50L, 0L, 50L, 0L,
> 25L, 50L, 50L, 75L, 75L, 75L, 0L, 75L, 75L, 75L, 0L, 25L, 75L,
> 75L, 0L, 75L, 100L, 0L, 25L, 100L), c(75L, 0L, 0L, 50L, 100L,
> 50L, 75L, 75L, 100L, 25L, 0L, 25L, 100L, 0L, 50L, 0L, 25L, 25L,
>