Starting a Companion File
In this section, a minimal companion file is added to the example project.
Create a file called foliodata.xml at the same, root level as the foliodata.mos file (... and the foliodata.bim file if present), with the following contents:
<?xml version="1.0" encoding="UTF-8"?> <model-companion xmlns="http://www.fico.com/xpress/optimization-modeler/model-companion" version="3.0"> <client> <view-group title="Portfolio Optimization"></view-group> </client> </model-companion>
A <model-companion> element is the root element for companion files - full XML documentation is available at http://www.fico.com/fico-xpress-optimization/docs/latest/insight/xml_reference/index.html.
<client> elements are containers for client-side configuration.
A <view-group> is a container for a group of views that will appear in the user interface.
With a cfile as above, no actual views have been defined - if you republish the app to Xpress Insight, there is no discernable difference.