# SuanShu, a Java numerical and statistical library

com.numericalmethod.suanshu.optimization.multivariate.constrained.convex.sdp.socp.qp.lp.problem

## Interface LPProblem

• ### Method Summary

All Methods
Modifier and Type Method and Description
ImmutableMatrix A()
Get the coefficients, A, of the greater-than-or-equal-to constraints A * x ≥ b.
ImmutableMatrix Aeq()
Get the coefficients, Aeq, of the equality constraints Aeq * x ≥ beq.
ImmutableVector b()
Get the values, b, of the greater-than-or-equal-to constraints A * x ≥ b.
ImmutableVector beq()
Get the values, beq, of the equality constraints Aeq * x ≥ beq.
ImmutableVector c()
Get the objective function.
boolean isFree(int i)
Check whether xi is a free variable after handling the box constraints.
• ### Methods inherited from interface com.numericalmethod.suanshu.optimization.multivariate.constrained.problem.ConstrainedOptimProblem

getEqualityConstraints, getLessThanConstraints
• ### Methods inherited from interface com.numericalmethod.suanshu.optimization.problem.OptimProblem

dimension, f
• ### Method Detail

• #### c

ImmutableVector c()
Get the objective function.
Returns:
the objective function
• #### A

ImmutableMatrix A()
Get the coefficients, A, of the greater-than-or-equal-to constraints A * x ≥ b.
Returns:
the coefficients of the greater-than-or-equal-to constraints
• #### b

ImmutableVector b()
Get the values, b, of the greater-than-or-equal-to constraints A * x ≥ b.
Returns:
the values of the greater-than-or-equal-to constraints
• #### Aeq

ImmutableMatrix Aeq()
Get the coefficients, Aeq, of the equality constraints Aeq * x ≥ beq.
Returns:
the coefficients of the equality constraints
• #### beq

ImmutableVector beq()
Get the values, beq, of the equality constraints Aeq * x ≥ beq.
Returns:
the values of the equality constraints
• #### isFree

boolean isFree(int i)
Check whether xi is a free variable after handling the box constraints.
Parameters:
i - the index of a variable, counting from 1
Returns:
true if xi is free