problem.loadlpsol
Purpose
This subroutine is deprecated and will be removed in a future release. Use problem.loadLPSol instead.
Loads an LP solution for the problem into the Optimizer. The returned status is either 0 if the solution is loaded or 1 if the solution is not loaded because the problem is in presolved status.
Loads an LP solution for the problem into the Optimizer. The returned status is either 0 if the solution is loaded or 1 if the solution is not loaded because the problem is in presolved status.
Synopsis
status = problem.loadlpsol(x, slack, duals, djs)
Arguments
|
x
|
Optional: Array of length
problem.attributes.cols (for the original problem and not the presolve problem) containing the values of the variables.
|
|
slack
|
Optional: double array of length
problem.attributes.rows containing the values of slack variables.
|
|
duals
|
Optional: double array of length
problem.attributes.rows containing the values of duals variables.
|
|
djs
|
Optional: double array of length
problem.attributes.cols containing the values of reduced costs.
|
Example
This example loads a problem and loads a solution for the problem.
p.read("problem", "")
status = p.loadlpsol(x, None, duals, None)
Further information
1. At least one of variables
x and duals variables
duals must be provided.
2. When variables
x is
None, the variables will be set to their bounds.
3. When slack variables
slack is
None, it will be computed from variables
x. If slacks are provided, variables cannot be omitted.
4. When duals variables
duals is
None, both duals variables and reduced costs will be set to zero.
5. When reduced costs
djs is
None, it will be computed from duals variables
duals. If reduced costs are provided, duals variables cannot be omitted.
Related topics
© 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.
