compute_objective_val_plus_one_min_one_enc function

Returns the objective value given a design vector as well an an objective function. This is code duplication since this is implemented within Java. This is only to be run if...