genmodel 0.0.31 → 0.0.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/ext/Genmodel/GenModelOsi.cpp +6 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f9cfcc3f7fba9b1b75caf58cece7577fbd1659df
4
- data.tar.gz: cab3dbfc5fd7a8b2461999124696f5ab612d1f53
3
+ metadata.gz: 6b54ab1381b33c1380ebda83e1f813fd46a56ebc
4
+ data.tar.gz: eb1cefbd649a4964c6a27ce07ca758079351c8b5
5
5
  SHA512:
6
- metadata.gz: 0b5d1d4d2596230467edd9f6bd5666005e658514999ef9c5441d25a866d12df5210e13c89ef20620b0feedd67dd1c61a97ccb659a332b118b0ff37c0d0eca3ec
7
- data.tar.gz: 849ab693f00f7b7dcadcf85e459cd28eac060938eb13f0355bc33bd4977bbf12a36488bcf1d5694f1f2574b1f098edc763fc0aec373400a8860459f875d30216
6
+ metadata.gz: a79b76df7e6d61ff74159434ec297621c32f7b3f6918906f19d185f9b6f1e1540bb2323b6d444e9f44ff5a2bc18b64bfc8261947555b36a09c7fa5a3f40d06ae
7
+ data.tar.gz: c01e743f1213f8d01fbb61bd93f81e69404d2da887215b10c66692a5aab3baf63650eb08bc03dbbfb91687df8ed47b077aeedeb5e556975e3ed1b4d1ca69333e
@@ -277,7 +277,9 @@ long GenModelOsi::Solve()
277
277
  generator->numberTimesEntered(),generator->numberCutsInTotal(), generator->numberCutsActive()); printmsg(tmp, this);
278
278
  }
279
279
 
280
- hassolution = d->mipmodel->getIntParam(CbcModel::CbcMaxNumSol) > 0;
280
+ //hassolution = d->mipmodel->bestSolution() != NULL;
281
+ printf("Number of solution = %d\n", d->mipmodel->getSolutionCount());
282
+ hassolution = d->mipmodel->getSolutionCount() > 0;
281
283
  objval = d->mult*d->mipmodel->getObjValue();
282
284
 
283
285
  d->model = d->mipmodel->solver();
@@ -326,7 +328,10 @@ long GenModelOsi::SetSol()
326
328
  vars.rc.resize(vars.n,0);
327
329
 
328
330
  if(!hassolution)
331
+ {
332
+ solstat = 2;
329
333
  return 1;
334
+ }
330
335
 
331
336
  const double* sol;
332
337
  const double* act;
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: genmodel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.31
4
+ version: 0.0.32
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mathieu Bouchard