Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - What are the operational research of integer variable classification?
What are the operational research of integer variable classification?
Classification of integer variables: basic type, short type, long type and unsigned type.

The type specifier is int, which occupies 2 bytes in memory and its value is a basic integer constant. In linear programming problems, some optimal solutions may be fractions or decimals, but for some specific problems, it is often required that the solutions of some variables must be integers.

For example, when the variable represents the number of machines, the number of workers or the number of cars loaded, etc. In order to meet the requirements of integers, at first glance, it seems that all you have to do is round off the obtained non-integers.

Defines the format of integer variables.

Integer type 1 variable names or multiple variable names separated by commas. Similarly, unsigned int and unsigned long variables can be defined. Defining a variable means allocating a corresponding size of storage space for the variable in memory, and at the same time determining the storage mode and possible operations of the variable value.