Purpose
Add a
MIP solution to the optimizer.
Synopsis
procedure addmipsol(solid:string,s:array(set of mpvar) of real)
Arguments
solid

Identifier to be assigned to the solution

s

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
Module
If you have any comments or suggestions about these pages,
please send mail to support@fico.com.
© Copyright 20012013 Fair Isaac Corporation. All rights reserved.