optiprofiler.Feature.modifier_affine

optiprofiler.Feature.modifier_affine#

Feature.modifier_affine(seed, problem)[source]#

Generate an invertible matrix A and a vector b for the affine transformation applied to the variables.

Parameters:
seedint

Seed used to generate random numbers.

problemProblem

Problem for which the affine transformation is generated.

Returns:
numpy.ndarray, numpy.ndarray, numpy.ndarray

Matrix A, vector b, and inverse of the matrix A.