Initializing help system before first use

setmipdir

Purpose
Set a directive on a variable or Special Ordered Set.
Synopsis
procedure setmipdir(x:mpvar,t:integer,r:real)
procedure setmipdir(x:mpvar,t:integer)
procedure setmipdir(c:linctr,t:integer,r:real)
procedure setmipdir(c:linctr,t:integer)
Arguments
A decision variable
A linear constraint (of type SOS)
A real value
Directive type, which may be one of:
XPRS_PR 
r is a priority (integer value between 1 and 1000 where 1 is the highest priority, 1000 the lowest)
XPRS_UP 
Force up first
XPRS_DN 
Force down first
XPRS_PU 
r is an up pseudo cost
XPRS_PD 
r is a down pseudo cost
XPRS_BR 
Force branching even if satisfied
Further information
This procedure sets a directive on a discrete entity. Note that the priority value is converted into an integer. The directives are loaded into the Optimizer at the same time as the problem itself.
Related topics
Module

© 2001-2025 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.