ply_shift_coord: Apply optimization function by coordinate shifting

View source: R/ply_shift_coord.R

ply_shift_coordR Documentation

Apply optimization function by coordinate shifting

Description

By repeating the process of optimization on each coordinate, find the minimum of a multi-variable function.

Usage

ply_shift_coord(fListPly,iter = list(x = c(1,3),
                                         y = c(0,2),
                                         z = c(-1,4)),
                           init = list(x=1,y=1.5,z = 1),
                           optimFunc = optim_midp,nply_iter = 5,...)

Arguments

fListPly

A function taking in a list of corresponding variable

iter

Iteration parameters for the optimFunc

init

Initial value to take in

optimFunc

Method to optimize a 1 var func.

Details

May converge quickly if the function does not have more than 1 local variables.

Author(s)

Hao Li

References

Matlab Youhuasuanfa

See Also

help, ~~~

Examples

ply_shift_coord((function(l) l$x^2+l$y^2-3*l$z^2),iter = list(x = c(1,3),
y = c(0,2),
z = c(-1,4)),
init =  list(x=1,y=1.5,z = 1))

HaoLi111/rMathModeling documentation built on April 7, 2023, 3:18 p.m.