I am working on mathematical modeling using Gurobi as a solver and python as an interface. In my model, I would like to create a binary variable but the variable is allowed to take a value of 1 if a>=1 else 0 where a is another decision variable in the model.
the binary variable should look like this as follows in the picture:-