module com { module sun { module star { module sheet {
/** Provides access to the solver settings stored in a specific Calc sheet * *@sinceLibreOffice25.2
*/
interface XSolverSettings: com::sun::star::uno::XInterface
{ /** Determines the model objective function type Possiblevaluesdefinedincss::sheet::SolverObjectiveType
*/
[attribute] byte ObjectiveType;
/** Cell pointing to the objective function of the model
*/
[attribute] any ObjectiveCell;
/** Value or cell address used in the "Value of" field. Tosetthisattribute,thevaluemustbeeither: 1)anumericvalue; 2)astringrepresentingtheaddressofasinglecellor; 3)aCellAddressstructinstance
*/
[attribute] any GoalValue;
/** Set the solver engine using its implementation name
*/
[attribute] string Engine;
/** Returns a sequence of strings containing all available solver implementation names
*/
[attribute, readonly] sequence<string> AvailableEngines;
/** Variable cells in the model, represented as a sequence of cell ranges
*/
[attribute] sequence<any> VariableCells;
/** Constraints of the solver model
*/
[attribute] sequence<ModelConstraint> Constraints;
/** Returns the number of constraints in the solver model
*/
[attribute, readonly] long ConstraintCount;
/** Solver engine options expressed as a sequence of property values. Eachsolverenginehasitsownsetofsupportedproperties. Onlytheoptionssupportedbythecurrentsolverenginearereturned.
*/
[attribute] sequence<com::sun::star::beans::PropertyValue> EngineOptions;
/** Last reported solver status. This can be used f.i. to check if an erroroccurredorifasolutionwasfound. Possiblevaluesdefinedincss::sheet::SolverStatus
*/
[attribute, readonly] byte Status;
/** Stores the last error message reported after calling the "solve()" method
*/
[attribute, readonly] string ErrorMessage;
/** Set this attribute to True to suppress dialogs shown the method "solve()"
*/
[attribute] boolean SuppressDialog;
/** Resets the solver model to its defaults settings
*/ void reset();
/** Run the solver model CheckthevaluesoftheStatusandErrorMessageattributestoknow whathappenedaftercallingthismethod
*/ void solve();
/** Save the solver model to the file. Thenexttimethefileisloaded,themodelwillbeinthesheetwhereitwascreated.
*/ void saveToFile();
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.