code: public static ObjFunction fromName(String name) {
          ObjFunction result = FUNCTIONS.get(name);
          if (result == null) {
              throw new IllegalArgumentException(name + " is not supported objective function.");
          }
          return result;
      }
docs: Gets {@link ObjFunction} from given name.
  
  @param name name of objective function
  @return objective function