Join/Login

Business Software

Open Source Software

For Vendors

Blog

About

More

Articles

Create

SourceForge Podcast

Site Documentation

Subscribe to our Newsletter

Support Request

For Vendors Help Create Join Login

Business Software

Open Source Software

SourceForge Podcast

Resources

Articles

Case Studies

Blog

Menu

Help

Create

Join

Login

Home

Browse

GMAT

Code

GMAT Code

General Mission Analysis Tool

Brought to you by: djcinsb, peterjcandell, space_egd

Summary

Files

Reviews

Support

Mailing Lists

News

Code

Archive (SVN)

Menu ▾ ▴

Browse Commits

Fork

Merge Requests 0

Forks 6

Branches

GMAT-R2025a

GMAT-R2015a

GMAT-R2016a

GMAT-R2017a

GMAT-R2018a

GMAT-R2020a

GMAT-R2022a

R2014a

Tags

R2020a

R2025a

[890d0e]: / bin / matlab / gmat_keyword / GmatFminconOptimizationDriver.m  Maximize  Restore  History

Download this file

43 lines (43 with data), 1.4 kB

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43

% function [X] = GmatFminconOptimizationDriver(X0, Lower, Upper)

% function GmatFminconOptimizationDriver(X0, Lower, Upper)

%

% Description: This function is called from GMAT to drive the fmincon optimizer.

%

% Variable I/O

% -------------------------------------------------------------------------

% Variable Name I/0 Type Dimens. Description/Comments

%

% X0 I array nx1 Column vector of initial

% values for independent

% variables

%

% Opt I string Name of GMAT FminconOptimizer

% object

%

% Lower I array nx1 Lower bound on the values of X

%

% Upper I array nx1 Upper bound on the values of X

%

% X O array nx1 Column vector of final

% values for independent

% variables

%

% Notes: n is the number of independent variables in X

% neq is the number of nonlinear equality constraints

% nineq is the number of nonlinear inequality constraints

% -------------------------------------------------------------------------

%

% External References: fmincon, EvaluateGMATObjective, EvaluateGMATConstraints,

% CallGMATfminconSolver

%

% Modification History

%

% 06/15/06, D. Conway, Created

% --- Declare global variables

global NonLinearEqCon JacNonLinearEqCon NonLinearIneqCon JacNonLinearIneqCon

OpenGMAT

[X, fVal, exitFlag] = fmincon(@EvaluateGMATObjective, X0, [], [], [], [], Lower, Upper, ...

@EvaluateGMATConstraints, GMAToptions)

% Apply the converged variables

CallGMATfminconSolver(X)

CloseGMAT

SourceForge

Create a Project

Open Source Software

Business Software

Top Downloaded Projects

Company

About

Team

SourceForge Headquarters
225 Broadway Suite 1600
San Diego, CA 92101
+1 (858) 422-6466

Resources

Support

Site Documentation

Site Status

SourceForge Reviews

© 2025 Slashdot Media. All Rights Reserved.

Terms Privacy Opt Out Advertise

×
Want the latest updates on software, tech news, and AI?

Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.

Submit