protected abstract static class BaseSolver.AbstractBuilder<B extends BaseSolver.AbstractBuilder<?,?>,S extends BaseSolver> extends Object implements Cloneable
Modifier | Constructor and Description |
---|---|
protected |
AbstractBuilder() |
protected |
AbstractBuilder(BaseSolver.AbstractBuilder<?,?> matrices) |
protected |
AbstractBuilder(MatrixStore<Double> C) |
protected |
AbstractBuilder(MatrixStore<Double>[] matrices) |
protected |
AbstractBuilder(MatrixStore<Double> Q,
MatrixStore<Double> C) |
Modifier and Type | Method and Description |
---|---|
B |
balance()
Will rescale problem parameters to minimise rounding and representation errors.
|
S |
build() |
abstract S |
build(Optimisation.Options options) |
protected Object |
clone() |
BaseSolver.AbstractBuilder<B,S> |
copy() |
int |
countEqualityConstraints() |
int |
countInequalityConstraints() |
int |
countVariables() |
protected B |
equalities(MatrixStore<Double> AE,
MatrixStore<Double> BE) |
MatrixStore<Double> |
getAE()
[AE][X] == [BE]
|
MatrixStore<Double> |
getAEX() |
MatrixStore<Double> |
getAI()
[AI][X] <= [BI]
|
MatrixStore<Double> |
getAIX() |
MatrixStore<Double> |
getAIX(int[] selector) |
MatrixStore<Double> |
getBE()
[AE][X] == [BE]
|
MatrixStore<Double> |
getBI()
[AI][X] <= [BI]
|
MatrixStore<Double> |
getBI(int[] selector) |
MatrixStore<Double> |
getC()
Linear objective: [C]
|
MatrixStore<Double> |
getQ()
Quadratic objective: [Q]
|
PhysicalStore<Double> |
getSE()
Slack for Equalities: [SE] = [BE] - [AE][X]
|
PhysicalStore<Double> |
getSI()
Slack for Inequalities: [SI] = [BI] - [AI][X]
|
MatrixStore<Double> |
getSI(int... selector)
Selected Slack for Inequalities
|
PhysicalStore<Double> |
getX()
Solution / Variables: [X]
|
boolean |
hasEqualityConstraints() |
boolean |
hasInequalityConstraints() |
boolean |
hasObjective() |
protected B |
inequalities(MatrixStore<Double> AI,
MatrixStore<Double> BI) |
boolean |
isX() |
protected B |
objective(MatrixStore<Double> C) |
protected B |
objective(MatrixStore<Double> Q,
MatrixStore<Double> C) |
void |
resetX() |
void |
setX(int index,
double value) |
String |
toString() |
protected void |
validate() |
protected AbstractBuilder()
protected AbstractBuilder(BaseSolver.AbstractBuilder<?,?> matrices)
protected AbstractBuilder(MatrixStore<Double> C)
protected AbstractBuilder(MatrixStore<Double> Q, MatrixStore<Double> C)
protected AbstractBuilder(MatrixStore<Double>[] matrices)
public B balance()
public final S build()
public abstract S build(Optimisation.Options options)
public BaseSolver.AbstractBuilder<B,S> copy()
public int countEqualityConstraints()
public int countInequalityConstraints()
public int countVariables()
public MatrixStore<Double> getAE()
public MatrixStore<Double> getAEX()
public MatrixStore<Double> getAI()
public MatrixStore<Double> getAIX()
public MatrixStore<Double> getAIX(int[] selector)
public MatrixStore<Double> getBE()
public MatrixStore<Double> getBI()
public MatrixStore<Double> getBI(int[] selector)
public MatrixStore<Double> getC()
public MatrixStore<Double> getQ()
public PhysicalStore<Double> getSE()
public PhysicalStore<Double> getSI()
public MatrixStore<Double> getSI(int... selector)
public PhysicalStore<Double> getX()
public boolean hasEqualityConstraints()
public boolean hasInequalityConstraints()
public boolean hasObjective()
public boolean isX()
public void resetX()
public void setX(int index, double value)
protected Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
protected B equalities(MatrixStore<Double> AE, MatrixStore<Double> BE)
protected B inequalities(MatrixStore<Double> AI, MatrixStore<Double> BI)
protected B objective(MatrixStore<Double> C)
protected B objective(MatrixStore<Double> Q, MatrixStore<Double> C)
protected void validate()
Copyright © 2017 Optimatika. All rights reserved.