f_linear_slope.c File Reference

Implementation of the linear slope function and problem. More...

#include <stdio.h>
#include <math.h>
#include <assert.h>
#include "coco.h"
#include "coco_problem.c"
#include "suite_bbob_legacy_code.c"
#include "transform_obj_shift.c"
#include "transform_obj_norm_by_dim.c"

Functions

static double f_linear_slope_raw (const double *x, const size_t number_of_variables, const double *best_parameter)
 Implements the linear slope function without connections to any COCO structures. More...
 
static void f_linear_slope_evaluate (coco_problem_t *problem, const double *x, double *y)
 Uses the raw function to evaluate the COCO problem. More...
 
static void f_linear_slope_evaluate_gradient (coco_problem_t *problem, const double *x, double *y)
 Evaluates the gradient of the linear slope function. More...
 
static coco_problem_tf_linear_slope_allocate (const size_t number_of_variables, const double *best_parameter)
 Allocates the basic linear slope problem. More...
 
static coco_problem_tf_linear_slope_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 linear slope problem. More...
 

Detailed Description

Implementation of the linear slope function and problem.

Function Documentation

static coco_problem_t* f_linear_slope_allocate ( const size_t  number_of_variables,
const double *  best_parameter 
)
static

Allocates the basic linear slope problem.

static coco_problem_t* f_linear_slope_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 linear slope problem.

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

Uses the raw function to evaluate the COCO problem.

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

Evaluates the gradient of the linear slope function.

static double f_linear_slope_raw ( const double *  x,
const size_t  number_of_variables,
const double *  best_parameter 
)
static

Implements the linear slope function without connections to any COCO structures.