Function GMP::Solution::GetDistance(GMP, solution1, solution2)

GMP::Solution::GetDistance

The function GMP::Solution::GetDistance calculates the Euclidean distance between the vectors of column level values in a first and second solution of a generated mathematical program.

GMP::Solution::GetDistance(
     GMP,            ! (input) a generated mathematical program
     solution1,      ! (input) a solution
     solution2       ! (input) a solution
     )

Arguments

GMP

An element in AllGeneratedMathematicalPrograms.

solution1

An integer scalar reference to a solution.

solution2

An integer scalar reference to a solution.

Return Value

In case of success, the Euclidean distance between both solutions. Otherwise it returns UNDF.

Note

The level value of the objective column (if any) is not used.