Choice Modeling - Optimizer EXPERIMENTAL
Jump to navigation
Jump to search
This page is currently under construction, or it refers to features which are under development and not yet available for use.
This page is under construction. Its contents are only visible to developers!
Create an optimizer (a simulator which allows multiple selection/scenarios) for a choice model in Displayr.
includeWeb('QScript Functions for Choice Modeling EXPERIMENTAL');
includeWeb("JavaScript Utilities");
// Specify number of alternatives
var k = -1;
while (!isPositiveInteger(k)) {
k = prompt("How many alternatives would you like in your optimizer?");
if (!isPositiveInteger(k))
alert("The number of alternatives must be an integer greater than 0.");
}
if (!createChoiceSimulator(k, true)) {
log("Could not create choice optimizer.")
}
See also
- QScript for more general information about QScripts.
- QScript Examples Library for other examples.
- Online JavaScript Libraries for the libraries of functions that can be used when writing QScripts.
- QScript Reference for information about how QScript can manipulate the different elements of a project.
- JavaScript for information about the JavaScript programming language.
- Table JavaScript and Plot JavaScript for tools for using JavaScript to modify the appearance of tables and charts.