XPRSrepairweightedinfeasbounds (REPAIRINFEAS)
int XPRS_CC XPRSrepairweightedinfeasbounds(XPRSprob prob, int * p_status, const double lepref[], const double gepref[], const double lbpref[], const double ubpref[], const double lerelax[], const double gerelax[], const double lbrelax[], const double ubrelax[], char phase2, double delta, const char *flags);
REPAIRINFEAS -[pflags] -[oflags] -[gflags] -[lrp value] -[grp value] -[lbp value] -[ubp value] -[lrb value] -[grb value] -[lbb value] -[ubb value] -[d value] -[r]
prob
|
The current problem.
|
||||||||||||||
p_status
|
The status after the relaxation:
|
||||||||||||||
lepref
|
Array of size
ROWS containing the preferences for relaxing the less or equal side of row. For the console use
-lrp value.
|
||||||||||||||
gepref
|
Array of size
ROWS containing the preferences for relaxing the greater or equal side of a row. For the console use
-grp value.
|
||||||||||||||
lbpref
|
Array of size
COLS containing the preferences for relaxing lower bounds. For the console use
-lbp value.
|
||||||||||||||
ubpref
|
Array of size
COLS containing preferences for relaxing upper bounds. For the console use
-ubp value.
|
||||||||||||||
lerelax
|
Array of size
ROWS containing the upper bounds on the amount the less or equal side of a row can be relaxed. For the console use
-lrb value.
|
||||||||||||||
gerelax
|
Array of size
ROWS containing the upper bounds on the amount the greater or equal side of a row can be relaxed. For the console use
-grb value.
|
||||||||||||||
lbrelax
|
Array of size
COLS containing the upper bounds on the amount the lower bounds can be relaxed. For the console use
-lbb value.
|
||||||||||||||
ubrelax
|
Array of size
COLS containing the upper bounds on the amount the upper bounds can be relaxed. For the console use
-ubb value.
|
||||||||||||||
phase2
|
Controls the second phase of optimization:
|
||||||||||||||
delta
|
The relaxation multiplier in the second phase -1.
|
||||||||||||||
flags
|
Specifies flags to be passed to XPRSoptimize.
|
||||||||||||||
r
|
If a summary of the violated variables and constraints should be printed after the relaxed solution is determined.
|
||||||||||||||
y
|
Call the global solver (console command only).
|
The weighted sum of violations if a solution is identified to the relaxed problem.
|
READPROB MYPROB.LP REPAIRINFEAS -a -d 0.002
Preference | Affects | Relaxation | Cost if pref.>0 | Cost if pref.<0 |
---|---|---|---|---|
lrp | = rows | aTx - aux_var = b | 1/lrp*aux_var | 1/lrp*aux_var2 |
lrp | <= rows | aTx - aux_var <= b | 1/lrp*aux_var | 1/lrp*aux_var2 |
grp | = rows | aTx + aux_var = b | 1/grp*aux_var | 1/grp*aux_var2 |
grp | >= rows | aTx + aux_var >= b | 1/grp*aux_var | 1/grp*aux_var2 |
ubp | upper bounds | xi - aux_var <= u | 1/ubp*aux_var | 1/ubp*aux_var2 |
lbp | lower bounds | xi + aux_var >= l | 1/lbp*aux_var | 1/lbp*aux_var2 |
© 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.