title: CPLEX C++ get the index of variable by variable name
body: <p>Is it possible in CPLEX optimizer, with c++ api, to get the index of a variable by the variable name? I couldn't find any suitable method to do that. Plz help. </p>
  
  <p>I have [IloNumVarArray vars;] variable to store variables by name.</p>
  
  <p>vars[i].getName(); // gives the name of the variable at index i</p>
  
  <p>Is there any method like : vars.getIndex(name), which can give the index of the variable?</p>