Uses of Class
org.ojalgo.optimisation.Variable
Packages that use Variable
-
Uses of Variable in org.ojalgo.optimisation
Methods in org.ojalgo.optimisation that return VariableModifier and TypeMethodDescriptionExpressionsBasedModel.addVariable()ExpressionsBasedModel.addVariable(String name) Variable.binary()SeeisBinary().ExpressionsBasedModel.getVariable(int index) ExpressionsBasedModel.getVariable(Structure1D.IntIndex index) IntermediateSolver.getVariable(int globalModelIndex) Variable.integer()Variable.integer(boolean integer) SeeisInteger().Variable.lower(Comparable<?> lower) ExpressionsBasedModel.newVariable(String name) Variable.relax()Variable.upper(Comparable<?> upper) Variable.value(BigDecimal value) Methods in org.ojalgo.optimisation that return types with arguments of type VariableModifier and TypeMethodDescriptionExpressionsBasedModel.bounds()ExpressionsBasedModel.getFreeVariables()ExpressionsBasedModel.getIntegerVariables()ExpressionsBasedModel.getNegativeVariables()ExpressionsBasedModel.getPositiveVariables()Returns a list of the variables that are not fixed at a specific value and whos range include positive values and/or zeroExpressionsBasedModel.getVariables()ExpressionsBasedModel.variables()Returns a stream of variables that are not fixed.Methods in org.ojalgo.optimisation with parameters of type VariableModifier and TypeMethodDescriptionExpression.add(Variable variable, Comparable<?> value) Will add the value to this variable's factor.Expression.add(Variable variable1, Variable variable2, Comparable<?> value) intprotected intExpressionsBasedModel.Integration.getIndexInSolver(ExpressionsBasedModel model, Variable variable) intintExpressionsBasedModel.indexOfFreeVariable(Variable variable) intExpressionsBasedModel.indexOfIntegerVariable(Variable variable) intExpressionsBasedModel.indexOfNegativeVariable(Variable variable) intExpressionsBasedModel.indexOfPositiveVariable(Variable variable) Expression.set(Variable variable, Comparable<?> value) Will set (replace) the variable's factor to this valueExpression.set(Variable variable1, Variable variable2, Comparable<?> value) voidMethod parameters in org.ojalgo.optimisation with type arguments of type VariableModifier and TypeMethodDescriptionvoidExpressionsBasedModel.addSpecialOrderedSet(Collection<Variable> orderedSet, int min, int max) Calling this method will create 2 things: A simple expression meassuring the sum of the (binary) variable values (the number of binary variables that are "ON").voidExpressionsBasedModel.addSpecialOrderedSet(Collection<Variable> orderedSet, int type, Expression linkedTo) Creates a special ordered set (SOS) presolver instance and links that to the supplied expression.voidExpression.setCompoundFactorsOffset(List<Variable> variables, Access1D<?> point) Will set the quadratic and linear factors to an expression that measures (the square of) the distance from the given point.voidExpression.setLinearFactors(List<Variable> variables, Access1D<?> factors) voidExpression.setLinearFactorsSimple(List<Variable> variables) Will set the linear factors to a simple sum expression - all factors equal 1.0.voidExpression.setQuadraticFactors(List<Variable> variables, Access2D<?> factors) -
Uses of Variable in org.ojalgo.optimisation.linear
Methods in org.ojalgo.optimisation.linear with parameters of type VariableModifier and TypeMethodDescriptionprotected intLinearSolver.ModelIntegration.getIndexInSolver(ExpressionsBasedModel model, Variable variable)