search for: extra1

Displaying 7 results from an estimated 7 matches for "extra1".

Did you mean: extra
2003 Oct 29
1
constrOptim doesn´t send arguments to optim!(?)
...tim in a f(x,theta)-like function, everything goes ok. But using constrOptim with the same function leads to error... Proof: Make a small change in the 'Rosenbrock Banana function' (taken from the Examples section of those help pages) adding extra (useless) parameters: fr <- function(x,extra1,extra2) { ## Rosenbrock Banana function x1 <- x[1] x2 <- x[2] extra1*extra2*100 * (x2 - x1 * x1)^2 + (1 - x1)^2 } grr <- function(x,extra1,extra2) { ## Gradient of 'fr' x1 <- x[1] x2 <- x[2] extra1*extra2*c(-400 * x1 * (x2 - x1 * x1) - 2 * (1 - x1),...
2023 Aug 05
1
feature request: optim() iteration of functions that return multiple values
...functions to functions that return only the first element: returnFirst <- function(fun) function(...) do.call(fun,list(...))[[1]] Example: fr <- function(x) { ## Rosenbrock Banana function x1 <- x[1] x2 <- x[2] ans <- 100 * (x2 - x1 * x1)^2 + (1 - x1)^2 list(ans=ans, extra1 = 1:10, extra2 = letters) } fr2 <- returnFirst(fr) tmp <- optim(c(-1.2,1), fr2) fr(tmp$par) Am 03.08.23 um 22:21 schrieb Sami Tuomivaara: > Dear all, > > I have used optim a lot in contexts where it would useful to be able to iterate function myfun that, in addition to the primar...
2019 Apr 16
1
Fix: menu immediate for submenu
...ally when MENU IMMEDIATE is used (at previous level). Here's a patch over syslinux 6.03. Patch was tested on Debian. Regards Dany *Sample config* # hot keys: S,1,2 are immediate (screen flash), but not E MENU IMMEDIATE LABEL standard MENU LABEL ^Standard MENU BEGIN MENU LABEL ^Extra LABEL extra1 MENU LABEL ^1. One LABEL extra2 MENU LABEL ^2. Two MENU END # end-of-config *Code analysis* The 'menu_entry' associated with a label inherits the 'immediate' flag of the parent 'menu' [record()] unless overridden for the label. The sub 'menu' inherits the ...
2017 Nov 13
3
[PATCH RFC v3 4/6] Documentation: Add three sysctls for smart idle poll
....extra2 = &one, }, #endif +#ifdef CONFIG_PARAVIRT + { + .procname = "paravirt_halt_poll_threshold", + .data = &paravirt_poll_threshold_ns, + .maxlen = sizeof(unsigned long), + .mode = 0644, + .proc_handler = proc_dointvec_minmax, + .extra1 = &zero, + .extra2 = &five_hundred_thousand, + }, + { + .procname = "paravirt_halt_poll_grow", + .data = &paravirt_poll_grow, + .maxlen = sizeof(unsigned int), + .mode = 0644, + .proc_handler = proc_dointvec_minmax, +...
2017 Nov 13
3
[PATCH RFC v3 4/6] Documentation: Add three sysctls for smart idle poll
....extra2 = &one, }, #endif +#ifdef CONFIG_PARAVIRT + { + .procname = "paravirt_halt_poll_threshold", + .data = &paravirt_poll_threshold_ns, + .maxlen = sizeof(unsigned long), + .mode = 0644, + .proc_handler = proc_dointvec_minmax, + .extra1 = &zero, + .extra2 = &five_hundred_thousand, + }, + { + .procname = "paravirt_halt_poll_grow", + .data = &paravirt_poll_grow, + .maxlen = sizeof(unsigned int), + .mode = 0644, + .proc_handler = proc_dointvec_minmax, +...
2023 Aug 03
3
feature request: optim() iteration of functions that return multiple values
Dear all, I have used optim a lot in contexts where it would useful to be able to iterate function myfun that, in addition to the primary objective to be minimized ('minimize.me'), could return other values such as alternative metrics of the minimization, informative intermediate values from the calculations, etc. myfun <- function() { ... return(list(minimize.me = minimize.me, R2 =
2012 Apr 30
5
[PATCH 0/4 v1] Remove gettextify, implement OCaml gettext.
Version 1 of the patch, for discussion, but not to be applied. It does work, but needs a lot more testing. This removes all the psychopathic gettextify cruft, and replaces it with a 99 line Makefile.am. A large win, I think. The third patch implements gettext support in the OCaml tools. The fourth patch is just for illustration. It shows the consequent changes to libguestfs.pot and the po