vcphub / cspsol

Try column generation techniques on cutting stock problem
GNU General Public License v3.0
0 stars 0 forks source link

Feature - XML input/output #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I have added crude XML output to cspsol, available with "--xml" -
parameter. If you are interested, where should I send patches or should I
join the project ?

We are aiming for developing an web-enabled frontend that will get data by
XML and feed them to cspsol and return XML-based answer. We will release
the code (most likely it will be written in Ruby) for this project if you
are interested. You can contact me with my username and by adding "joiner"
dot "fi" after it.

Original issue reported on code.google.com by henry.pa...@gmail.com on 15 Aug 2008 at 12:16

GoogleCodeExporter commented 9 years ago
I think you should be able to attach a file (patch or complete modified file) 
right
here in this issue tracker. Notice the link "Attach a file" at the bottom of 
the text
box, when start typing in the comments. Please use it to upload the modified 
source
code files.

You are welcome to join the project as member. Let me have a look at the code 
for
your proposed feature, if it looks fine, then I can make you a project member, 
so
that you can commit it yourself, if you want.

Original comment by vijay.pa...@gmail.com on 15 Aug 2008 at 1:55

GoogleCodeExporter commented 9 years ago
Here is the patch, generated with "diff -C 2". It is based on 0.4 version. XML 
output
comes with "--xml" command-line option. Along with that, "--silent" suppresses 
all
other output, so that XML should be ready for transferring to upper level 
systems.

Patches also include new property, "tag", for order_width class. Tag-field 
could be
used to uniquely identify the part being optimized, with unique ID if 
necessary. It's
not ready yet though, since I didn't yet know how I should get tag-field through
optimization process. Tag-field needs 3rd field for input-file, for now it can 
be 0;

cspsol-0.4/data$ cat o2.txt
6000
2000 4 0
1000 4 0
cspsol-0.4/data$ ./cspsol --wa --xml --silent --data o2.txt
<solution>
    <quality>2</quality>
    <pattern>
        <cut>2000</cut>
        <cut>2000</cut>
        <cut>1000</cut>
        <cut>1000</cut>
    </pattern>
    <pattern>
        <cut>2000</cut>
        <cut>2000</cut>
        <cut>1000</cut>
        <cut>1000</cut>
    </pattern>
</solution>

Original comment by henry.pa...@gmail.com on 19 Aug 2008 at 10:27

Attachments:

GoogleCodeExporter commented 9 years ago
Changes commited to subversion r14, closing issue.

Original comment by henry.pa...@gmail.com on 21 Aug 2008 at 10:45