f_different_powers.c File Reference

Implementation of the different powers function and problem. More...

#include <assert.h>
#include <math.h>
#include "coco.h"
#include "coco_problem.c"
#include "suite_bbob_legacy_code.c"
#include "transform_obj_shift.c"
#include "transform_vars_affine.c"
#include "transform_vars_shift.c"
#include "transform_vars_permutation.c"
#include "transform_vars_blockrotation.c"
#include "transform_obj_norm_by_dim.c"

Functions

static double f_different_powers_raw (const double *x, const size_t number_of_variables)
 Implements the different powers function without connections to any COCO structures. More...
 
static void f_different_powers_evaluate (coco_problem_t *problem, const double *x, double *y)
 Uses the raw function to evaluate the COCO problem. More...
 
double sign (double x)
 Implements the sign function. More...
 
static void f_different_powers_evaluate_gradient (coco_problem_t *problem, const double *x, double *y)
 Evaluates the gradient of the function "different powers". More...
 
static coco_problem_tf_different_powers_allocate (const size_t number_of_variables)
 Allocates the basic different powers problem. More...
 
static coco_problem_tf_different_powers_bbob_problem_allocate (const size_t function, const size_t dimension, const size_t instance, const long rseed, const char *problem_id_template, const char *problem_name_template)
 Creates the BBOB different powers problem. More...
 
static coco_problem_tf_different_powers_bbob_constrained_problem_allocate (const size_t function, const size_t dimension, const size_t instance, const long rseed, const char *problem_id_template, const char *problem_name_template)
 Creates the bbob-constrained different powers problem. More...
 
static coco_problem_tf_different_powers_permblockdiag_bbob_problem_allocate (const size_t function, const size_t dimension, const size_t instance, const long rseed, const char *problem_id_template, const char *problem_name_template)
 Creates the BBOB generalized permuted block-rotated sum of different powers problem. More...
 

Detailed Description

Implementation of the different powers function and problem.

Function Documentation

static coco_problem_t* f_different_powers_allocate ( const size_t  number_of_variables)
static

Allocates the basic different powers problem.

static coco_problem_t* f_different_powers_bbob_constrained_problem_allocate ( const size_t  function,
const size_t  dimension,
const size_t  instance,
const long  rseed,
const char *  problem_id_template,
const char *  problem_name_template 
)
static

Creates the bbob-constrained different powers problem.

static coco_problem_t* f_different_powers_bbob_problem_allocate ( const size_t  function,
const size_t  dimension,
const size_t  instance,
const long  rseed,
const char *  problem_id_template,
const char *  problem_name_template 
)
static

Creates the BBOB different powers problem.

static void f_different_powers_evaluate ( coco_problem_t problem,
const double *  x,
double *  y 
)
static

Uses the raw function to evaluate the COCO problem.

static void f_different_powers_evaluate_gradient ( coco_problem_t problem,
const double *  x,
double *  y 
)
static

Evaluates the gradient of the function "different powers".

static coco_problem_t* f_different_powers_permblockdiag_bbob_problem_allocate ( const size_t  function,
const size_t  dimension,
const size_t  instance,
const long  rseed,
const char *  problem_id_template,
const char *  problem_name_template 
)
static

Creates the BBOB generalized permuted block-rotated sum of different powers problem.

static double f_different_powers_raw ( const double *  x,
const size_t  number_of_variables 
)
static

Implements the different powers function without connections to any COCO structures.

double sign ( double  x)

Implements the sign function.