1.

How Do I Construct A Problem Instance In Scip?

Answer»
  • For starters, SCIP COMES with complete examples in source code that illustrate the problem creation process. Please refer to the examples of the Callable Library section in the Example Documentation of SCIP.
  • First you have to create a SCIP object via SCIPcreate (), then you start to build the problem via SCIPcreate Prob (). Then you create variables via SCIPcreate Var () and add them to the problem via SCIPaddVar ().
  • The same has to be done for the constraints. For example, if you want to fill in the rows of a general MIP, you have to call SCIPcreateConsLinear (), SCIPaddConsLinear () and additionally SCIPreleaseCons () after finishing. If all variables and constraints are present, you can initiate the SOLUTION process via SCIPsolve ().
  • Make SURE to also call SCIPreleaseVar () if you do not need the variable pointer ANYMORE. For an EXPLANATION of creating and releasing objects, please see the notes on releasing objects.



Discussion

No Comment Found