[Couenne-tickets] [Couenne] #22: NIP solution get a float

Couenne coin-trac at coin-or.org
Fri Jan 11 22:17:46 EST 2013


#22: NIP solution get a float
----------------------------+----------------------
 Reporter:  blueskythinker  |      Owner:  pbelotti
     Type:  task            |     Status:  new
 Priority:  minor           |  Milestone:
Component:  Couenne         |    Version:
 Keywords:                  |
----------------------------+----------------------
 hi,

   I'm using couenne to solve a NIP problem, and i get a float solution.

 System: Win7+ampl

 couenne.exe --version
 couenne (Microsoft cl 15.00.21022.08 f 80x86), ASL(20100130)

 AMPL model file:
  param N >0,integer;
  param Cmax >0,integer;
  param Cmin >0,integer;
  set index:=1..N;
  param alreadlyDownload{index}>=0,integer;
  param downloadAbility{index}>=0,integer;
  var x{index}>=0,integer;
  subject to total:sum{ i in index} x[i]<=Cmax;
  subject to ability{i in index}: x[i]<=downloadAbility[i];
  maximize gain:  sum{ i in index} log(x[i]+alreadlyDownload[i]);


 dataFile:
  param downloadAbility:=
 1 28
 2 21
 3 10;
 param N:=3;
 param alreadlyDownload:=
 1 479
 2 478
 3 199;
 param Cmax:=10;
 param Cmin:=6;

 and AMPL script:

 reset;
 model model.mod;
 data data.dat;
 option solver couenne;
 solve;
 display x;
 display gain;
 display downloadAbility;
 display alreadlyDownload;
 display Cmax;
 display Cmin;



 the output:
   couenne: Optimal
 x [*] :=
 1   2.79221e-09
 2   2.84946e-09
 3  10
 ;

 gain = 17.6836

 downloadAbility [*] :=
 1  28
 2  21
 3  10
 ;

 alreadlyDownload [*] :=
 1  479
 2  478
 3  199
 ;

 Cmax = 10

 Cmin = 6


 thanks!

-- 
Ticket URL: <https://projects.coin-or.org/ticket/22>
Couenne <https://projects.coin-or.org/Couenne>
Couenne, a solver for non-convex MINLP



More information about the Couenne-tickets mailing list