Initializing help system before first use

# RepairWeightedInfeas(Int32, Double[], Double[], Double[], Double[], Char, Double, String) Method

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.
Namespace: Optimizer
Assembly: xprsdn (in xprsdn.dll) Version: 46.01.02+e8d9493ad804415424ae931ce2abaeb6c55a6d5a
Syntax
C#

    public void RepairWeightedInfeas(
    	out int p_status,
    	double[] lepref,
    	double[] gepref,
    	double[] lbpref,
    	double[] ubpref,
    	char phase2,
    	double delta,
    	string flags
    )

#### Parameters

p_status Int32
  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.
lepref Double
  Array of size ROWS containing the preferences for relaxing the less or equal side of row.
gepref Double
  Array of size ROWS containing the preferences for relaxing the greater or equal side of a row.
lbpref Double
  Array of size COLS containing the preferences for relaxing lower bounds.
ubpref Double
  Array of size COLS containing preferences for relaxing upper bounds.
phase2 Char
  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 Double
  The relaxation multiplier in the second phase -1.
flags String
  Specifies flags to be passed to optimize.

See Also

#### Reference

XPRSprob Class
RepairWeightedInfeas Overload
Optimizer Namespace
Parent Topic RepairWeightedInfeas Method

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