transform_obj_shift.c File Reference

Implementation of shifting the objective value by the given offset. More...

#include <assert.h>
#include "coco.h"
#include "coco_problem.c"

Data Structures

struct  transform_obj_shift_data_t
 Data type for transform_obj_shift. More...
 

Functions

static void transform_obj_shift_evaluate_function (coco_problem_t *problem, const double *x, double *y)
 Evaluates the transformed function. More...
 
static void transform_obj_shift_evaluate_gradient (coco_problem_t *problem, const double *x, double *y)
 Evaluates the gradient of the transformed function at x. More...
 
static coco_problem_ttransform_obj_shift (coco_problem_t *inner_problem, const double offset)
 Creates the transformation. More...
 

Detailed Description

Implementation of shifting the objective value by the given offset.

Function Documentation

static coco_problem_t* transform_obj_shift ( coco_problem_t inner_problem,
const double  offset 
)
static

Creates the transformation.

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

Evaluates the transformed function.

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

Evaluates the gradient of the transformed function at x.