Uses of Class
com.google.ortools.modelbuilder.Variable
Packages that use Variable
- 
Uses of Variable in com.google.ortools.modelbuilder
Methods in com.google.ortools.modelbuilder that return VariableModifier and TypeMethodDescriptionEnforcedLinearConstraint.getIndicatorVariable()Returns the indicator variable of the constraint/ModelBuilder.newBoolVar(String name) Creates a Boolean variable with the given name.ModelBuilder.newConstant(double value) Creates a constant variable.Creates an integer variable with domain [lb, ub].Creates a continuous variable with domain [lb, ub].Creates a variable with domain [lb, ub].ModelBuilder.varFromIndex(int index) Rebuilds a variable from its index.Methods in com.google.ortools.modelbuilder with parameters of type VariableModifier and TypeMethodDescriptionModelBuilder.addEnforcedEquality(LinearArgument expr, double value, Variable iVar, boolean iValue) Addsivar == iValue => expr == value.ModelBuilder.addEnforcedEquality(LinearArgument left, LinearArgument right, Variable iVar, boolean iValue) Addsivar == iValue => left == right.ModelBuilder.addEnforcedGreaterOrEqual(LinearArgument expr, double value, Variable iVar, boolean iValue) Addsivar == iValue => expr >= value.ModelBuilder.addEnforcedGreaterOrEqual(LinearArgument left, LinearArgument right, Variable iVar, boolean iValue) Addsivar == iValue => left >= right.ModelBuilder.addEnforcedLessOrEqual(LinearArgument expr, double value, Variable iVar, boolean iValue) Addsivar == iValue => expr <= value.ModelBuilder.addEnforcedLessOrEqual(LinearArgument left, LinearArgument right, Variable iVar, boolean iValue) Addsivar == iValue => left <= right.ModelBuilder.addEnforcedLinearConstraint(LinearArgument expr, double lb, double ub, Variable iVar, boolean iValue) Addsivar == iValue => lb <= expr <= ub.voidAdds var * coeff to the constraint.voidAdds var * coeff to the constraint.doubleModelSolver.getReducedCost(Variable var) Checks that the solver has found a solution, and returns the reduced cost of the given variable.doubleChecks that the solver has found a solution, and returns the value of the given variable.voidEnforcedLinearConstraint.setCoefficient(Variable v, double coeff) Sets the coefficient of v to coeff, adding or removing a term if needed.voidLinearConstraint.setCoefficient(Variable v, double coeff) Sets the coefficient of v to coeff, adding or removing a term if needed.voidEnforcedLinearConstraint.setIndicatorVariable(Variable v) Sets the indicator variable of the constraint.