MEIGO: MEIGO main function

Description Usage Arguments See Also Examples

View source: R/MEIGO.R

Description

Wrapper around the different optimisation methods

Usage

1
	MEIGO(problem, opts, algorithm, ...)

Arguments

problem

List containing problem settings.

opts

A list of n_threads lists containing options for each cooperative instance of essR.

algorithm

One of VNS, ESS, MULTISTART, CESSR, CEVNSR. Check the documentation of each algorithm for more information.

...

Additional input arguments.

See Also

essR rvnds_hamming CeVNSR CeSSR

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
#global optimum

#x*=[0.0898, -0.7127];
# or    
#x*=[-0.0898, 0.7127];
#
#f(x*)= -1.03163;

ex1 <- function(x){
	y<-4*x[1]*x[1]-2.1*x[1]^4+1/3*x[1]^6+x[1]*x[2]-4*x[2]*x[2]+4*x[2]^4;
	return(y)
}

#========================= PROBLEM SPECIFICATIONS ===========================
problem<-list(f=ex1,x_L=rep(-1,2),x_U=rep(1,2))
opts<-list(maxeval=500, ndiverse=40, local_solver='DHC', local_finish='LBFGSB', local_iterprint=1)
#========================= END OF PROBLEM SPECIFICATIONS =====================

Results<-MEIGO(problem,opts,algorithm="ESS");

MEIGOR documentation built on Nov. 8, 2020, 7:46 p.m.