Initializing help system before first use

# repairweightedinfeas

Purpose
By relaxing a set of selected constraints and bounds of an infeasible problem, it attempts to identify a 'solution' that violates the selected set of constraints and bounds minimally, while satisfying all other constraints and bounds.
Among such solution candidates, it selects one that is optimal regarding the original objective function.
Synopsis
`repairweightedinfeas(
prob,
lepref,
gepref,
lbpref,
ubpref,
phase2,
delta,
flags
)`
Arguments

prob | The current problem.
lepref | Array of size ROWS containing the preferences for relaxing the less or equal side of row.
gepref | Array of size ROWS containing the preferences for relaxing the greater or equal side of a row.
lbpref | Array of size COLS containing the preferences for relaxing lower bounds.
ubpref | Array of size COLS containing preferences for relaxing upper bounds.
phase2 | Controls the second phase of optimization: o use the objective sense of the original problem (default); x maximize the relaxed problem using the original objective; f skip optimization regarding the original objective; n minimize the relaxed problem using the original objective; i if the relaxation is infeasible, generate an irreducible infeasible subset for the analys of the problem; a if the relaxation is infeasible, generate all irreducible infeasible subsets for the analys of the problem.
delta | The relaxation multiplier in the second phase -1.
flags | Specifies flags to be passed to optimize.

Return value
The status after the relaxation:

0
  relaxed optimum found;
1
  relaxed problem is infeasible;
2
  relaxed problem is unbounded;
3
  solution of the relaxed problem regarding the original objective is nonoptimal;
4
  error (when return code is nonzero);
5
  numerical instability;
6
  analysis of an infeasible relaxation was performed, but the relaxation is feasible.

Further information
Please refer to the C documentation for more details.
Parent Topic R interface reference manual

© 2001-2026 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.