f_ellipsoid.c File Reference

Implementation of the ellipsoid function and problem. More...

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

Functions

static double f_ellipsoid_raw (const double *x, const size_t number_of_variables)
 Implements the ellipsoid function without connections to any COCO structures. More...
 
static void f_ellipsoid_evaluate (coco_problem_t *problem, const double *x, double *y)
 Uses the raw function to evaluate the COCO problem. More...
 
static void f_ellipsoid_evaluate_gradient (coco_problem_t *problem, const double *x, double *y)
 Evaluates the gradient of the ellipsoid function. More...
 
static coco_problem_tf_ellipsoid_allocate (const size_t number_of_variables)
 Allocates the basic ellipsoid problem. More...
 
static coco_problem_tf_ellipsoid_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 ellipsoid problem. More...
 
static coco_problem_tf_ellipsoid_rotated_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 rotated ellipsoid problem. More...
 
static coco_problem_tf_ellipsoid_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 permuted block-rotated ellipsoid problem. More...
 
static coco_problem_tf_ellipsoid_cons_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 ellipsoid problem for the constrained BBOB suite. More...
 
static coco_problem_tf_ellipsoid_rotated_cons_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 rotated ellipsoid problem for the constrained BBOB suite. More...
 

Detailed Description

Implementation of the ellipsoid function and problem.

Function Documentation

static coco_problem_t* f_ellipsoid_allocate ( const size_t  number_of_variables)
static

Allocates the basic ellipsoid problem.

static coco_problem_t* f_ellipsoid_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 ellipsoid problem.

static coco_problem_t* f_ellipsoid_cons_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 ellipsoid problem for the constrained BBOB suite.

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

Uses the raw function to evaluate the COCO problem.

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

Evaluates the gradient of the ellipsoid function.

static coco_problem_t* f_ellipsoid_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 permuted block-rotated ellipsoid problem.

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

Implements the ellipsoid function without connections to any COCO structures.

static coco_problem_t* f_ellipsoid_rotated_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 rotated ellipsoid problem.

static coco_problem_t* f_ellipsoid_rotated_cons_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 rotated ellipsoid problem for the constrained BBOB suite.