grid.sqrt
- grid.sqrt(x)[source]
Return an expression evaluating to the square root of
x.- Parameters:
x (Expr, Var, or numeric) – Operand. The result has type
"float".- Return type:
Expr
Examples
>>> import grid >>> model = grid.RoutingModel() >>> vehicle = model.add_vehicle_type(id=0, count=1, capacity=10) >>> load = vehicle.add_integer_var(initial_value=10) >>> grid.sqrt(load) Expr(sqrt, Var_0, None, float)