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 TypeMethodDescriptionModelBuilder.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 an 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 TypeMethodDescriptionvoiddoubleModelSolver.getReducedCost(Variable var) Checks that the solver has found a solution, and reduced cost of the given variable.doubleChecks that the solver has found a solution, and value of the given variable.