/******************************************************** Xpress-BCL C# Example Problems ============================== file xbexpl1.cs ``````````````` BCL user guide example. Definition of variables and constraints, variable arrays and SOS, followed by file output, solving and printing of solutions. (c) 2008-2023 Fair Isaac Corporation authors: S.Heipcke, D.Brett. ********************************************************/ using System; using System.Text; using System.IO; using BCL; namespace Examples { public class TestUGExpl1 { const int NJ = 4; /* Number of jobs */ const int NT = 10; /* Time limit */ bool SOS = false; /**** DATA ****/ double[] DUR = {3,4,2,2}; /* Durations of jobs */ XPRBvar[] start = new XPRBvar[NJ]; /* Start times of jobs */ XPRBvar[,] delta = new XPRBvar[NJ,NT]; /* Binaries for start times */ XPRBvar z; /* Maximum completion time (makespan) */ XPRBsos[] set = new XPRBsos[NJ]; /* Sets regrouping start times for jobs */ XPRBprob p = new XPRBprob("Jobs"); /* Initialize BCL and a new problem */ /*************************************************************************/ public void jobsModel() { XPRBexpr le; int j,t; /****VARIABLES****/ /* Create start time variables */ for(j=0;j