Add a MIP solution to the optimizer.
procedure addmipsol(solid:string,s:array(set of mpvar) of real)
Identifier to be assigned to the solution
An array containing the solution
Further information
1. This function adds a MIP solution to the optimizer that has previously been saved using procedure savemipsol or constructed by some external heuristic. In the latter case a value needs to be assigned to each discrete variable in the problem, such as mysol(x):= 1 (where x is a decision variable of type mpvar).
2. The values for the continuous variables in the s array are ignored and are calculated by fixing the integer variables and reoptimizing.
3. The current problem definition must be loaded into the Optimizer for addmipsol to have any effect. If this has not recently been done, e.g., by calling maximize or minimize, the problem must be explicitly loaded using loadprob.
4. The function returns immediately after passing the solution to the optimizer. The solution is placed in a pool until the optimizer is able to analyze the solution during a MIP solve.
5. The SOLNOTIFY callback function can be used to discover the outcome of a loaded solution, based on the identifier assigned to the solution (see setcallback).
Related topics

If you have any comments or suggestions about these pages, please send mail to

© Copyright 2001-2013 Fair Isaac Corporation. All rights reserved.