globalMOO Documentation
  • globalMOO API Documentation
  • core
    • Authentication
    • Core Concepts
    • Getting Started with globalMOO
    • Error Handling
    • Event Handling
    • SDK Initialization
    • Debugging & Logging
  • schemas
    • Account Schema
    • Model Schema
    • Project Schema
    • Trial Schema
    • Objective Schema
    • Result Schema
    • Inverse Schema
  • quickstart
    • Your First Optimization with globalMOO
  • endpoints
    • accounts
      • Account Endpoints
      • Register Account
    • inverse
      • Inverse Optimization Endpoints
      • Initialize Inverse Optimization
      • Load Inverse Output
      • Suggest Inverse Step
    • models
      • Create Model
      • Model Endpoints
      • List Models
    • objectives
      • Objective Endpoints
      • Load Objectives
    • outputs
      • Output Endpoints
      • Load Output Cases
      • Load Developed Outputs
    • projects
      • Create Project
      • Project Endpoints
    • trials
      • Trial Endpoints
      • Read Trial
Powered by GitBook
On this page
  • Endpoint
  • Path Parameters
  • Request Parameters
  • Response Fields
  • Request Format
  • Response Format
  • Examples
  • Error Responses
  • Status Values
  • Validation Rules
  1. endpoints
  2. outputs

Load Developed Outputs

Loads a set of developed outputs into a trial in globalMOO.

Endpoint

POST /trials/{trial_id}/load-developed-outputs

Path Parameters

Parameter
Type
Required
Description

trial_id

integer

Yes

ID of the trial

Request Parameters

Parameter
Type
Required
Description

count

integer

Yes

Number of output variables (must be > 0)

outputs

array[array[float]]

Yes

Array of output arrays (must match count)

Response Fields

Field
Type
Description

id

integer

Unique identifier for the output set

trial_id

integer

ID of the trial these outputs belong to

status

string

Current trial status after loading outputs

outputs

array[array[float]]

Array of output arrays, each containing count float values

created_at

string

Creation timestamp (ISO 8601)

updated_at

string

Last update timestamp (ISO 8601)

Request Format

{
    "count": 3,
    "outputs": [
        [1.2, 3.4, 5.6],
        [7.8, 9.0, 1.2],
        [3.4, 5.6, 7.8]
    ]
}

Response Format

{
    "id": 123,
    "trial_id": 456,
    "status": "active",
    "outputs": [
        [1.2, 3.4, 5.6],
        [7.8, 9.0, 1.2],
        [3.4, 5.6, 7.8]
    ],
    "created_at": "2025-01-31T10:00:00.000Z",
    "updated_at": "2025-01-31T10:00:00.000Z"
}

Examples

from globalmoo import Client

client = Client(api_key="your-api-key")
result = client.load_developed_outputs(
    trial_id=123,
    count=3,
    outputs=[
        [1.2, 3.4, 5.6],
        [7.8, 9.0, 1.2],
        [3.4, 5.6, 7.8]
    ]
)

print(f"Status: {result.status}")
const { Client } = require('globalmoo');

const client = new Client('your-api-key');
const result = await client.loadDevelopedOutputs({
    trialId: 123,
    count: 3,
    outputs: [
        [1.2, 3.4, 5.6],
        [7.8, 9.0, 1.2],
        [3.4, 5.6, 7.8]
    ]
});

console.log(`Status: ${result.status}`);
$client = new Client("your-api-key");

$result = $client->loadDevelopedOutputs([
    "trialId" => 123,
    "count" => 3,
    "outputs" => [
        [1.2, 3.4, 5.6],
        [7.8, 9.0, 1.2],
        [3.4, 5.6, 7.8]
    ]
]);

echo "Status: " . $result->status . "\n";

Error Responses

Status Code
Description

400

Invalid request - Malformed output data

401

Unauthorized - Invalid API key

404

Trial not found

429

Too many requests - Rate limit exceeded

500

Internal server error

Status Values

Possible status values:

  • active - Trial is currently active

  • completed - Trial has completed successfully

  • failed - Trial failed due to an error

Validation Rules

  • Trial ID must be a positive integer

  • Count must be a positive integer matching the trial output count

  • Each output array must contain exactly 'count' values

  • All output values must be valid floating point numbers

  • The outputs array must contain at least one case

  • Trial must exist and be active

PreviousLoad Output CasesNextprojects

Last updated 4 months ago