Format of the data read from a file or write to a file

Note: The delimeter can be selected although it is “,” by default. New line is considered as delimeter.

Count of decision variables,

count of constraints,

 problem type (1 for maximization / -1 for minimization),

coeff for 1st decision variable,

coeff for 2nd decision variable,

...,

0,

0,

coeff for 1st variable of 1st constraint,

coeff for 2nd variable of 1st constraint,

...,

Equality Sign of 1st constraint

RHS of 1st constraint,

...

 Equality Sign; 0 for = constraints,  1 for < and <= constraints, 2 for  > and >= constraints

Example 1;

4, 4, 1,

1, 1, 3, -0.5,0, 0,

1, 0, 2, 0, 1,740,

0, 2, 0, -7, 1, 0,

1, 1, 1, 1, 0, 9,

0, 1, -1, 2, 2, 0.5

Example 2;

4, 4, 1

1, 1, 3, -0.5,0, 0

1, 0, 2, 0, 1,740

0, 2, 0, -7, 1, 0

1, 1, 1, 1, 0, 9

0, 1, -1, 2, 2, 0.5