I have two objective functions based on a binary decision variable X (X takes either 0 or 1) - maximize A*X and minimize B*X. How to achieve that in MATLAB and CPLEX? Weights of each objective function is defined.
You can use the GAMULTIOBJ function in Matlab. First, you need to create a custom creation function ("CreationFcn") for the initial population. Then, create mutation function ("MutationFcn") that produces mutation children, and create a crossover function that generate only integer outputs ("CrossoverFcn").