/***********************************************************************/ /* MIDACO solves Multi-Objective Mixed-Integer Non-Linear Problems: Minimize F_1(X),... F_O(X) where X(1,...N-NI) is CONTINUOUS and X(N-NI+1,...N) is DISCRETE subject to G_j(X) = 0 (j=1,...ME) equality constraints G_j(X) >= 0 (j=ME+1,...M) inequality constraints and bounds XL <= X <= XU The problem statement of this example is given below. You can use this example as template to run your own problem. To do so: Replace the objective functions 'F' (and in case the constraints 'G') given here with your own problem and follow the below instruction steps. */ /***********************************************************************/ #include #include #include "midaco.h" void problem_function( double *f, double *g, double *x ); int main(void) { midaco_int o = 1, n = 48, ni = 0, m = 38, me = 38; midaco_int iflag = 0, istop = 0, p = 1, lrw, liw, lpf = 1, i; midaco_int maxeval, maxtime, printeval, save2file, resumable; double f[1], g[38], x[48], param[15], pf[1], *rw; midaco_int *iw; char key[] = "************************************************************"; double xl[48] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.849999, 0, 0.849999, 0, 0.849999, 0, 0, 0.849999, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; double xu[48] = { 35, 90, 90, 140, 90, 35, 35, 35, 35, 35, 35, 35, 90, 90, 90, 35, 35, 35, 35, 35, 1, 1, 1, 1, 30, 1, 30, 1, 30, 1, 1, 30, 1, 1, 30, 1, 30, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 }; for( i=0; i