Procedure GMP::Solution::Copy(GMP, fromSolution, toSolution)

GMP::Solution::Copy

The procedure GMP::Solution::Copy copies one solution to another solution in the solution repository of a generated mathematical program.

GMP::Solution::Copy(
     GMP,            ! (input) a generated mathematical program
     fromSolution,   ! (input) a solution
     toSolution      ! (input) a solution
     )

Arguments

GMP

An element in AllGeneratedMathematicalPrograms.

fromSolution

An integer scalar reference to a solution.

toSolution

An integer scalar reference to a solution.

Return Value

The procedure returns 1 on success, or 0 otherwise.

See also

The routines GMP::Instance::Generate and GMP::Solution::Move.