transform_obj_penalize.c File Reference

Implementation of adding a penalty to the objective value for solutions outside of the ROI in the decision space. More...

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

Data Structures

struct  transform_obj_penalize_data_t
 Data type for transform_obj_penalize. More...
 

Functions

static void transform_obj_penalize_evaluate (coco_problem_t *problem, const double *x, double *y)
 Evaluates the transformation. More...
 
static coco_problem_ttransform_obj_penalize (coco_problem_t *inner_problem, const double factor)
 Creates the transformation. More...
 

Detailed Description

Implementation of adding a penalty to the objective value for solutions outside of the ROI in the decision space.

Function Documentation

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

Creates the transformation.

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

Evaluates the transformation.