[Scip] Meaning of SPARSESOLUTION Member Data
Stefan Heinz
heinz at zib.de
Thu May 24 11:02:05 MEST 2012
Hi,
in cons_countsols.c exist a method called writeExpandedSolutions
<http://scip.zib.de/doc/html_devel/cons__countsols_8c.html#a1fdec7b56aadb0cb9a21042be8ff582e>()
which unrolls the sparse solutions
http://scip.zib.de/doc/html_devel/cons__countsols_8c.html#a1fdec7b56aadb0cb9a21042be8ff582e
Does that help?
Stefan
On 05/24/12 10:30, Hélène Toussaint wrote:
> Hi all,
>
> I have tried to collect all feasible solutions generated by my BCP
> algorithm using SCIPcount().
>
> 1. I have fixed the collect parameter to TRUE like this:
> SCIPsetBoolParam( env._scip, "constraints/countsols/collect", TRUE) ;
>
> 2. After solving (using SCIPcount() ) I have used the
> SCIPgetCountedSparseSolutions to obtain the solutions like this:
>
> SCIP_VAR **vars;
> intnvars, nsols;
> SPARSESOLUTION **sols;
> SCIPgetCountedSparseSolutions( env._scip, &vars, &nvars,&sols, &nsols );
>
> I have had a look to the values stored in nsols and vars but I don't
> understand their meanings and so I am not able to construct the
> solutions. Could you please help me with these data: how can I get the
> solutions (objective value and variables values) ?
>
> Best regards,
> Hélène
>
>
> _______________________________________________
> Scip mailing list
> Scip at zib.de
> http://listserv.zib.de/mailman/listinfo/scip
More information about the Scip
mailing list