transform_obj_scale.c File Reference

Implementation of scaling the objective value by the given factor. More...

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

Data Structures

struct  transform_obj_scale_data_t
 Data type for transform_obj_scale. More...
 

Functions

static void transform_obj_scale_evaluate_function (coco_problem_t *problem, const double *x, double *y)
 Evaluates the transformed function. More...
 
static void transform_obj_scale_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_scale (coco_problem_t *inner_problem, const double factor)
 Creates the transformation. More...
 

Detailed Description

Implementation of scaling the objective value by the given factor.

Function Documentation

static coco_problem_t* transform_obj_scale ( coco_problem_t inner_problem,
const double  factor 
)
static

Creates the transformation.

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

Evaluates the transformed function.

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

Evaluates the gradient of the transformed function at x.