Method: Cbc_wrapper.Cbc_setContinuous

Defined in:
ext/cbc-wrapper/cbc_wrap.c

.Cbc_setContinuous(*args) ⇒ Object



3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
# File 'ext/cbc-wrapper/cbc_wrap.c', line 3608

SWIGINTERN VALUE
_wrap_Cbc_setContinuous(int argc, VALUE *argv, VALUE self) {
  Cbc_Model *arg1 = (Cbc_Model *) 0 ;
  int arg2 ;
  int res1 ;
  int val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Cbc_Model *","Cbc_setContinuous", 1, argv[0] )); 
  }
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","Cbc_setContinuous", 2, argv[1] ));
  } 
  arg2 = (int)(val2);
  Cbc_setContinuous(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}