Questions tagged [deoptimization]

Use deoptimization for questions related to compiler construction which involves speculatively compiling code using heurestics which make assumptions about data types and memory allocation with a fallback to more conservative compilation in case of failure.

Deoptimization allows a compiler to make assumptions to generate optimized code, but if the assumptions in the optimized code turn out to be too optimistic, to reconstruct the state of the virtual registers and register window and bail out to the code generated by the base compiler.

References

14 questions
6
votes
0 answers

Reproducible results across multiple runs of DEoptim

I am trying to use DEoptim in R in the following way fit <- DEoptim(fn = .obj, lower=lower, upper = upper, control = list(itermax = 100, trace = 1, parallelType = 1, steptol = 25, reltol = 1e-9,…
Kumar
  • 189
  • 7
5
votes
1 answer

DEOptim keeps telling: NaN value of objective function

I've written a simulation program in C++ and like to find parameters in R, using DEoptim. Sometimes everything works well and sometimes DEoptim stops and tells: Error in DEoptim(simulate, lower = lb, upper = ub, control = opt) : NaN value of…
dani
  • 3,677
  • 4
  • 26
  • 60
2
votes
0 answers

DEoptim: how to optimize more than one parameter?

I want to fit a curve,the model is as the following picture. In this model, there are four parameters(alpha,beta,gamma and Rd)to optimize,now the data of I and P(I) is already,and the function DEoptim() from DEoptim package in R is used,this is my…
YQ.Zhi
  • 21
  • 2
2
votes
1 answer

DEoptim error: objective function result has different length than parameter matrix due to foreachArgs specification

I have a very odd DEoptim error that I have "fixed", but do not understand. I do not have issues when I use DEoptim's parallel capabilities with the parallel package (i.e., pType=1). However when I use foreach instead (which I must use on the grid…
user052084
  • 25
  • 3
2
votes
1 answer

Chrome's V8 won't optimize function because of "tagged-to-i: not a heap number"

I have a function that's supposed to round X to the nearest multiple of A. Here's the code in JavaScript: var round = function (x, a) { "use strict"; if (typeof a === "undefined") { return Math.round(x); } var half = a / 2, sign…
Paul Borza
  • 191
  • 1
  • 7
1
vote
1 answer

what is a deoptimization request on un-deoptimizable method in Android Studio?

I'm running my app in Kotlin and there is no error, but I keep getting these warnings: W/app: Got a deoptimization request on un-deoptimizable method boolean libcore.io.Linux.access(java.lang.String, int) W/app: Got a deoptimization request on…
1
vote
0 answers

R caret maximum accuracy gradient boosting

I am trying to tune gradient boosting (caret package) with differential evolution (DEOptim) in R language. I have a question, is correct to define the maximum of accuracy at each iteration in my eval function as the…
user979974
  • 883
  • 3
  • 13
  • 32
1
vote
1 answer

Researching Javascript DEOPT reasons in Chrome 79 for a pet project

I've been tinkering with a Javascript chess engine for a while. Yeah yeah I know (chuckles), not the best platform for that sorta thing. It's a bit of a pet project, I'm enjoying the academic exercise and am intrigued by the challenge of approaching…
A Moore
  • 181
  • 1
  • 10
1
vote
1 answer

Passing optimization function arguments in R DEoptim

I am trying to learn the DEoptim library in R but I think I am misunderstanding the library documentation from https://www.rdocumentation.org/packages/DEoptim/versions/2.2-4/topics/DEoptim I am getting the error argument "returns_covar" is missing,…
coolhand
  • 1,876
  • 5
  • 25
  • 46
1
vote
1 answer

Javascript deoptimization

I'm not sure what's wrong in this code. Src is a Uint8Array object with a length bigger than 0. function makeImageFromChannel(src) { var image = new Uint8Array(src.length * 4), i = 0, index = 0, value = 0; …
Loïc Faure-Lacroix
  • 13,220
  • 6
  • 67
  • 99
0
votes
0 answers

Is Excel Evolutionary Algorithm similar to DEoptim in R?

I am trying to solve a minimization problem using DEoptim in R. Previously, I used Excel's Solver tool, particularly the Evolutionary Solver technique. But the results from DEoptim don't match and are found often provide answers close to the given…
0
votes
0 answers

Equivalent in python of fnMap parameter in DEoptim in R

I want to replicate this function opt_object <- DEoptim(fn = optimFunctionDT, lower = lower, upper = upper, fnMap = mappingFun, control = DEoptim.control(trace = 500, itermax = 5000, steptol = 1000), lt_scores, ncol(lt_scores), list_matrices_def,…
0
votes
0 answers

How to make non-liear portfolio optimization faster

How do I make non-linear portfolio optimization faster? I want to optimize a portfolio of 50 assets on the following measure: (mean(portfolio returns_t-1)/sd(portfolio returns_t-1)-mean(portfolio returns_t-2)/sd(portfolio returns_t-2). So I want the…
0
votes
0 answers

When is javascript deoptimizer invoked?

I understand that js' JIT compiler will deoptimize the warm or hot code in case datatype changes in a loop (like one element in array is string whereas rest were int). But i have few scenarios where i'm not able to understand will the code be…
a1626
  • 2,953
  • 1
  • 19
  • 34