MATLAB: Hey People :) Im trying to using a for loop to create and print an array of a Geometric Serise that stores the first 10 terms of the sequence that halves each time i.e. {1/2, 1/4, 1/8, 1/16, … 1/1024 }
MATLAB
My method obviously is to use a for loop but my problem is printing the array.
The only robust way is to loop over all 2^10 on/off combinations of the boilers. In each pass through the loop, i.e., for each combination, use fmincon/linprog to solve for the optimal output of the on-boilers. Shouldn't be too bad with only 10 unknowns max. per problem.
Best Answer