Package | Description |
---|---|
com.jom |
Code of the Java Optimization Modeler (JOM) library.
|
Modifier and Type | Method and Description |
---|---|
DoubleMatrixND |
DoubleMatrixND.ascending(double first,
double step)
Fills the current array with ascending numbers (in the order of the linear indexes)
|
DoubleMatrixND |
DoubleMatrixND.assign(double value)
Sets all cells to the state specified by value
|
DoubleMatrixND |
DoubleMatrixND.assign(double[] values)
Sets all cells to the state specified by values. values is required to have as many cells as this.
|
DoubleMatrixND |
DoubleMatrixND.assign(DoubleFunction f)
Assigns the result of a function to each cell. x[i] = function(x[i]).
|
DoubleMatrixND |
DoubleMatrixND.assign(DoubleMatrixND other)
Replaces all cell values of the receiver with the values of another matrix.
|
DoubleMatrixND |
DoubleMatrixND.assign(DoubleMatrixND y,
DoubleDoubleFunction function)
Assigns the result of a function to each cell; x[i] = function(x[i],y[i]).
|
DoubleMatrixND |
DoubleMatrixND.assign(DoubleMatrixND y,
DoubleDoubleFunction function,
IntArrayList indexList)
Assigns the result of a function to all cells with a given indexes function - a function object taking as first argument the current cell's value of this, and as second argument the current cell's value of y
|
DoubleMatrixND |
DoubleMatrixND.assign(DoubleProcedure cond,
double value)
Assigns a value to all cells that satisfy a condition.
|
DoubleMatrixND |
DoubleMatrixND.assign(DoubleProcedure cond,
DoubleFunction f)
Assigns the result of a function to all cells that satisfy a condition.
|
DoubleMatrixND |
DoubleMatrixND.copy()
Constructs and returns a deep copy of the receiver.
|
DoubleMatrixND |
DoubleMatrixND.descending(double first,
double step)
Fills the current array with descending numbers (in the order of the linear indexes)
|
DoubleMatrixND |
Expression.evaluate(Object... varNameVarValuePairs)
Evaluates this expression, in the point provided by the decision variables.
|
DoubleMatrixND |
Expression.evaluateConstant()
Evaluates this expression.
|
DoubleMatrixND |
OptimizationProblem.getInputParameter(String name)
Obtains the value (an array of doubles) of the input parameter previously set
|
DoubleMatrixND |
OptimizationProblem.getMultiplierOfLowerBoundConstraintToPrimalVariables(String decisionVariableName)
Returns the multipliers of the automatic constraints: x_l <= varName added to the problem, where x_l is the array of lower bounds provided, associated to the decision variable.
|
DoubleMatrixND |
OptimizationProblem.getMultiplierOfUpperBoundConstraintToPrimalVariables(String decisionVariableName)
Returns the multipliers of the automatic constraints: varName <= x_u added to the problem, where x_u is the array of upper bounds provided, associated to the decision variable.
|
DoubleMatrixND |
OptimizationProblem.getMultipliersOfConstraint(String constraintIdentifier)
Returns the multipliers of the given constraint
|
DoubleMatrixND |
OptimizationProblem.getPrimalSolution(String decisionVariable)
Returns the primal solution obtained after solving the problem for the given (array of) decision variables.
|
DoubleMatrixND |
OptimizationProblem.getSlackOfConstraint(String constraintIdentifier)
Returns the slack of the given constraints.
|
DoubleMatrixND |
DoubleMatrixND.reshape(int[] newSize)
Changes the shape of this array.
|
DoubleMatrixND |
DoubleMatrixND.viewPart(IntMatrix1D initialSubindex,
IntMatrix1D width)
Returns Constructs and returns a new sub-range view.
|
DoubleMatrixND |
DoubleMatrixND.viewSelection(IntMatrix1D[] subindexesPerDim)
Returns Constructs and returns a new sub-range view.
|
DoubleMatrixND |
DoubleMatrixND.viewSelectionByIndexes(int[] newSize,
IntMatrix1D indexes)
Returns Constructs and returns a new sub-range view.
|
Modifier and Type | Method and Description |
---|---|
void |
OptimizationProblem.addDecisionVariable(String name,
boolean isInteger,
int[] size,
DoubleMatrixND x_l,
DoubleMatrixND x_u)
Adds an array of decision variables to the optimization problem
|
double |
DoubleMatrixND.aggregate(DoubleMatrixND other,
DoubleDoubleFunction aggr,
DoubleDoubleFunction f)
Applies a function to each corresponding cell of two matrices and aggregates the results.
|
DoubleMatrixND |
DoubleMatrixND.assign(DoubleMatrixND other)
Replaces all cell values of the receiver with the values of another matrix.
|
DoubleMatrixND |
DoubleMatrixND.assign(DoubleMatrixND y,
DoubleDoubleFunction function)
Assigns the result of a function to each cell; x[i] = function(x[i],y[i]).
|
DoubleMatrixND |
DoubleMatrixND.assign(DoubleMatrixND y,
DoubleDoubleFunction function,
IntArrayList indexList)
Assigns the result of a function to all cells with a given indexes function - a function object taking as first argument the current cell's value of this, and as second argument the current cell's value of y
|
boolean |
DoubleMatrixND.equals(DoubleMatrixND other)
Compares this object against the specified object.
|
void |
OptimizationProblem.setInitialSolution(String decisionVariableName,
DoubleMatrixND initialValue)
Sets the initial solution of the optimization algorithm solving the problem (to be used by some solvers like IPOPT).
|
void |
OptimizationProblem.setInputParameter(String name,
DoubleMatrixND array)
Sets the value of the (arrayed) input parameter identified by its name.
|