transform_vars_shift.c File Reference

Implementation of shifting all decision values by an offset. More...

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

Data Structures

struct  transform_vars_shift_data_t
 Data type for transform_vars_shift. More...
 

Functions

static void transform_vars_shift_evaluate_function (coco_problem_t *problem, const double *x, double *y)
 Evaluates the transformed objective function. More...
 
static void transform_vars_shift_evaluate_constraint (coco_problem_t *problem, const double *x, double *y)
 Evaluates the transformed constraint function. More...
 
static void transform_vars_shift_evaluate_gradient (coco_problem_t *problem, const double *x, double *y)
 Evaluates the gradient of the transformed function at x. More...
 
static void transform_vars_shift_free (void *thing)
 Frees the data object. More...
 
static coco_problem_ttransform_vars_shift (coco_problem_t *inner_problem, const double *offset, const int shift_bounds)
 Creates the transformation. More...
 

Detailed Description

Implementation of shifting all decision values by an offset.

Function Documentation

static coco_problem_t* transform_vars_shift ( coco_problem_t inner_problem,
const double *  offset,
const int  shift_bounds 
)
static

Creates the transformation.

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

Evaluates the transformed constraint function.

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

Evaluates the transformed objective function.

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

Evaluates the gradient of the transformed function at x.

static void transform_vars_shift_free ( void *  thing)
static

Frees the data object.